| View previous topic :: View next topic |
| Author |
Message |
calvinkwoo3000 Newbie
Joined: 08 Feb 2006 Posts: 11
|
Posted: Apr 18th, 2006 09:18 AM Post subject: invisible and visible label |
|
|
| How can i onclick a button then visible a label. Then we i reonclick the button the label is invisible. |
|
| Back to top |
|
sprog90 Newbie

Joined: 21 Jul 2005 Posts: 20
|
Posted: Apr 18th, 2006 05:01 PM Post subject: |
|
|
You can try the code:
| Code: |
Private Sub Command1_Click()
If Label1.Visible = True Then
Label1.Visible = False
ElseIf Label1.Visible = False Then
Label1.Visible = True
End If
End Sub
|
I hope that is what are you looking for! |
|
| Back to top |
|
dougthomas Moderator
Joined: 27 Jul 2005 Posts: 271 Location: Essex, UK
|
Posted: Apr 21st, 2006 03:40 AM Post subject: |
|
|
Hi,
Or
| Code: |
Private Sub Command1_Click()
Label1.Visible = Not Label1.Visible
End Sub
|
Regards
Doug _________________ If you can see the light at the end of the tunnel, it probably means there's a Train coming. |
|
| Back to top |
|
|