[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 :D
Cheers
Rabid Lemming
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.
Re: Timer/interval problem
Wow!!! Thank you both very much that was extremely helpful :D
Re: Timer/interval problem
Re: Timer/interval problem
Re: Timer/interval problem
Thank you :bigyello: :bigyello: