New Drug Wars question (groupbox hide and timer)

skaryChinezeGuie

Well-known member
Joined
Apr 23, 2006
Messages
94
Programming Experience
Beginner
ok. here it goes. How can i make three groupboxes invisible until one of the nine labels on my usercontrol is clicked. I was planning on making them hidden on the Main Form load event and putting code in the label click events on the usercontrol to make them all three groupboxes visible again. Everything I tried didn't work. whoo.

oh, and how do i make my timer count backwards from 30 minutes and stop and disable the timer when it reaches 0? It only goes forwards from zero now.

'ppreciate any help.

skary:D
 
for the groupbox's you could use label's but i would use buttons (i've actually played the windows version of DopeWars they made, i think i have a copy of it somewhere)
in the label/button click event simply set the groupbox's Visible property to True and it'll be shown on the form

to make a counter count down instead of up, in the tick event of the timer simply:
Var -= 1 instead of Var += 1
 
Back
Top