I need to make a text box not visible
txtBox.visible= false
doeesnt seem to be working what make s it dissapear
txtBox is my var name
Printable View
I need to make a text box not visible
txtBox.visible= false
doeesnt seem to be working what make s it dissapear
txtBox is my var name
txtBox should be your control name not variable name
unless you are create controls using Controls.Add
Text boxes are not variables.
Click on the box on the form and check the name, by default, they are called something like Text1
If it is, the following would make it not visible:
Text1.Visible = False
This works:
VB Code:
Option Explicit Private Sub Form_Load() Text1.Visible = False End Sub
Is txtBox a TextBox Object, or just a Variable??
thanks
it was object name sorry
the form load did the trick