|
-
Mar 3rd, 2005, 08:24 PM
#1
Thread Starter
Addicted Member
[RESOLVED] Timer/interval problem
Hey,
I'd like to create timer or interval (which ever works best) that I can use with the from on load event. When the forum loads I want a timer to wait for say 5 seconds and then call a function.
My Problem is everything I try, the from load calls the timer ok but the form won't show till the timer has elapsed. I need the from to load and show everything. Then call the timer and when the timer time has elapsed, call the function ?
Any help would be greatly appreciated
Cheers
Rabid Lemming
-
Mar 3rd, 2005, 08:30 PM
#2
Hyperactive Member
Re: Timer/interval problem
Set the timer property in form design view with 5000 for 5 seconds and set enabled to true.
Then in the timer sub, do your thing.
VB Code:
Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
StatusBarPanel2.Text = Now.ToLongTimeString
End Sub
For example, my timer interval is set to 1000 and it is also set to enabled = true.
So basically every second there will be a call to the client time and it will display it.
-
Mar 3rd, 2005, 08:55 PM
#3
Thread Starter
Addicted Member
Re: Timer/interval problem
Wow!!! Thank you both very much that was extremely helpful
-
Mar 3rd, 2005, 09:04 PM
#4
Thread Starter
Addicted Member
Re: Timer/interval problem
Thanks

I will wait for death with a smile and a big stick
-
Mar 4th, 2005, 01:26 AM
#5
Hyperactive Member
Re: Timer/interval problem
-
Mar 4th, 2005, 10:51 AM
#6
Thread Starter
Addicted Member
Re: Timer/interval problem
Thank you

I will wait for death with a smile and a big stick
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|