View Full Version : Timer
How do I use the Timer Function to unload a form after 3 seconds of starting and reload other form after the first one closes?
Thanks for your time :)
schiavo
05-02-04, 09:46 PM
I'd write one timer event, on a timer set with interval = 3000 (3 seconds)
sub timer_timer()
Unload Me
' Unload does not terminate the current thread, but closes at end sub
dim NuForm as new form3
NuForm.Show
end sub
How do I use the Timer Function to unload a form after 3 seconds of starting and reload other form after the first one closes?
Thanks for your time :)
irajiii
05-11-04, 05:00 PM
I was using this in the main form load
Dim Splash As New Splash
Splash.ShowDialog()
dbname.Clear()
OleDbDataAdapter1.Fill(dbname)
and then in the form you want to close in 3 seconds, use the timer like this
Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
Me.Close()
End Sub
vBulletin® v3.6.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.