943,866 Members | Top Members by Rank

Ad:
  • VB.NET Discussion Thread
  • Unsolved
  • Views: 5112
  • VB.NET RSS
Sep 1st, 2008
0

Timer control

Expand Post »
i need help on setting the timer control to close an animated form within a specific period of time.
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
henry1987 is offline Offline
2 posts
since Sep 2008
Sep 3rd, 2008
0

Re: Timer control

Close a Form ? or Before close the Form Animate it then Close?
Reputation Points: 44
Solved Threads: 101
Posting Pro
selvaganapathy is offline Offline
547 posts
since Feb 2008
Sep 3rd, 2008
0

Re: Timer control

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()
Reputation Points: 10
Solved Threads: 3
Junior Poster in Training
cellus205 is offline Offline
57 posts
since May 2007
Sep 4th, 2008
0

Re: Timer control

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.
Reputation Points: 12
Solved Threads: 2
Newbie Poster
Lee_Sonnenburg is offline Offline
19 posts
since Sep 2008
Sep 7th, 2008
0

Re: Timer control

I mean set the timer to .....say 5 seconds and close the form after the 5 secods is exhausted. that's what i mean.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
henry1987 is offline Offline
2 posts
since Sep 2008
Sep 7th, 2008
0

Re: Timer control

> 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.
Reputation Points: 44
Solved Threads: 101
Posting Pro
selvaganapathy is offline Offline
547 posts
since Feb 2008

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in VB.NET Forum Timeline: functions in the class file
Next Thread in VB.NET Forum Timeline: Urgent, SAVE AND LOAD!





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC