It appears you have not yet registered with DEVPPL. To register please click here... (it's fast, easy and free!)

Forum

Log In Sponsors
Partner Sites
Board index Programming Visual Basic Forum

Using a button twice?

Moderator: dafunkymunky

Using a button twice?

Postby trashtroll on Tue Mar 17, 2009 2:51 am

Hi, I need to make a super simple program for my speech class. How would i program a button so I can click it once, and hace a bunch of labels go from visible = false... to visible= true... then click the button again and have the button go back to visible = false...
so i want to click the button once. have the labels appear.. lick it again and have the labels disappear... does anyone know the code for that
trashtroll
 
Posts: 1
Joined: Tue Mar 17, 2009 2:46 am

Re: Using a button twice?

Postby LaytProducts on Mon Jun 29, 2009 11:28 pm

Very easy. Just use this for the button_click thingy

Code: Select all
if label1.visible = false Then
label1.visible = True
else If label1.visible = true Then
label1.visible = False
end if


Your saying:
If the labels are not visible then make them visible. If they are visible then make them not visible
LaytProducts
 
Posts: 2
Joined: Mon Jun 29, 2009 11:18 pm


Who is online

Users browsing this forum: No registered users and 1 guest