Timer control

Please support our VB.NET advertiser: Intel Parallel Studio Home
Reply

Join Date: Sep 2008
Posts: 2
Reputation: henry1987 is an unknown quantity at this point 
Solved Threads: 0
henry1987 henry1987 is offline Offline
Newbie Poster

Timer control

 
0
  #1
Sep 1st, 2008
i need help on setting the timer control to close an animated form within a specific period of time.
Reply With Quote Quick reply to this message  
Join Date: Feb 2008
Posts: 509
Reputation: selvaganapathy is an unknown quantity at this point 
Solved Threads: 88
selvaganapathy's Avatar
selvaganapathy selvaganapathy is offline Offline
Posting Pro

Re: Timer control

 
0
  #2
Sep 3rd, 2008
Close a Form ? or Before close the Form Animate it then Close?
KSG
Reply With Quote Quick reply to this message  
Join Date: May 2007
Posts: 45
Reputation: cellus205 is an unknown quantity at this point 
Solved Threads: 1
cellus205 cellus205 is offline Offline
Light Poster

Re: Timer control

 
0
  #3
Sep 3rd, 2008
Set the timer interval to however long you want it to wait until it closes, Start the timer in whatever triggers the form, and In the timer's code Form.Close()
Reply With Quote Quick reply to this message  
Join Date: Sep 2008
Posts: 19
Reputation: Lee_Sonnenburg is an unknown quantity at this point 
Solved Threads: 2
Lee_Sonnenburg Lee_Sonnenburg is offline Offline
Newbie Poster

Re: Timer control

 
0
  #4
Sep 4th, 2008
Yeah, you have to set the timer interval to however long you want it to wait. it's in milliseconds so 1000 would be 1 second.

Now in your code, put timer.start in the appropriate procedure. This will start counting.

The Tick Event is when the timer hits the specified interval. So in this procedure you will close your form.

hope this helps.
Reply With Quote Quick reply to this message  
Join Date: Sep 2008
Posts: 2
Reputation: henry1987 is an unknown quantity at this point 
Solved Threads: 0
henry1987 henry1987 is offline Offline
Newbie Poster

Re: Timer control

 
0
  #5
Sep 7th, 2008
I mean set the timer to .....say 5 seconds and close the form after the 5 secods is exhausted. that's what i mean.
Reply With Quote Quick reply to this message  
Join Date: Feb 2008
Posts: 509
Reputation: selvaganapathy is an unknown quantity at this point 
Solved Threads: 88
selvaganapathy's Avatar
selvaganapathy selvaganapathy is offline Offline
Posting Pro

Re: Timer control

 
0
  #6
Sep 7th, 2008
> Set the Timer interval 5000
> In Timer.Tick Event, Close the Form

I think you want to animate the form while closing .

If so Start the Timer while form closing.
KSG
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the VB.NET Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC