|
-
Jun 30th, 2008, 09:06 PM
#1
Thread Starter
Lively Member
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
-
Jun 30th, 2008, 09:16 PM
#2
Re: to make label appear after click a button
Well make sure you have controls by all of those names. Check for typos
If a post has been helpful please rate it. 
If your question has been answered, pull down the tread tools and mark it as resolved.
-
Jul 1st, 2008, 06:27 AM
#3
Re: to make label appear after click a button
 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
-
Jul 1st, 2008, 07:43 PM
#4
Thread Starter
Lively Member
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?
-
Jul 1st, 2008, 08:52 PM
#5
Member
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
Last edited by Cha0sBG; Jul 1st, 2008 at 08:59 PM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|