to make label appear after click a button
hey guys i would like to make my label appear only when i click the button. i've tried this code but it says methods or data member not found and highlight the word visible. Help me plz...
Code:
Private Sub lblNo_Click()
lblRecDec.Visible = True
txbRecDec.Visible = True
lblFinish.Visible = True
End Sub
Re: to make label appear after click a button
Well make sure you have controls by all of those names. Check for typos
Re: to make label appear after click a button
Quote:
Originally Posted by Mxjerrett
Well make sure you have controls by all of those names. Check for typos
It has to be this.....this code worked just fine for me.
Code:
Private Sub lblNo_Click()
lblRecDec.Visible = True
txbRecDec.Visible = True
lblFinish.Visible = True
End Sub
Re: to make label appear after click a button
so before we apply that code we must disable the visible properties of that label right?
Re: to make label appear after click a button
A Simple example
vb Code:
Private Sub Form_Load()
Label1.Visible = False ' So from the begining the label whount be visible
End SuB
And Then
vb Code:
Private Sub Command1_Click()
Label1.visible = True ' when u click the button the label will be visible
End Sub