DEVPPL
http://www.devppl.com/forum/

Using a button twice?
http://www.devppl.com/forum/viewtopic.php?f=57&t=13081
Page 1 of 1

Author:  trashtroll [ Tue Mar 17, 2009 2:51 am ]
Post subject:  Using a button twice?

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

Author:  LaytProducts [ Mon Jun 29, 2009 11:28 pm ]
Post subject:  Re: Using a button twice?

Very easy. Just use this for the button_click thingy

Code:
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

Page 1 of 1 All times are UTC + 1 hour
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/