Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

a 3 minute timer

Status
Not open for further replies.

ferrisj

IS-IT--Management
Joined
Dec 7, 2004
Messages
79
Location
US
i am trying to teach myself visual basic .net. i just started a new project, got a form up, and am looking at the code. I am trying to make a 3 minute timer, that teh background changes as time decreases. Can anyone help me do this?
 
Assuming you plan to change the background every 10 seconds, create a form level integer variable and initialise it to 18 (6 changes * 3 minutes) Put a timer on the form and set its interval property to 10000 (10 * 1000 = 10 seconds) In the Timer Tick event handler, check the form level variable if it is 0 then disable the timer, otherwise, decrement the variable and change the background.


Hope this helps.


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top