ComboBox

1. the caption property is the text, and the visible property displays it correct?
2. in the on got focus event.
 
1 is correct (but without the Visible part) and 2 is correct. By setting the Caption property of the label that's the text that will get displayed automatically. The Visible property is for making a control/object visible, it doesn't affect the text.
 
I have the label default value as just a space. In the form on current event I set label visible to false. In each on got focus event I set the caption as well as visible to true, and on lost focus I set visible to false. It works great.
 
My advice is you should leave the Visible property as-is and only deal with the Caption.

For an empty label:
Code:
Me.Label.Caption = ""
 

Users who are viewing this thread

Back
Top Bottom