Log inUsernamePassword
Log me on automatically each visit    
Register
Register
Log in to check your private messages
Log in to check your private messages
Visual Basic Forum for Visual Basic Programmers VB Forum Index » General

Post new topic   Reply to topic
invisible and visible label
View previous topic :: View next topic  
Author Message
calvinkwoo3000
Newbie


Joined: 08 Feb 2006
Posts: 11

PostPosted: Apr 18th, 2006 09:18 AM    Post subject: invisible and visible label Reply with quote

How can i onclick a button then visible a label. Then we i reonclick the button the label is invisible.
Back to top
View user's profile Send private message
sprog90
Newbie


Joined: 21 Jul 2005
Posts: 20

PostPosted: Apr 18th, 2006 05:01 PM    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
dougthomas
Moderator


Joined: 27 Jul 2005
Posts: 271
Location: Essex, UK

PostPosted: Apr 21st, 2006 03:40 AM    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Visual Basic Forum for Visual Basic Programmers VB Forum Index » General All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Visual Basic Forum runs phpBB | Forum Template © iOptional
VB Resources | SSL | Visual Basic