Windows Develop Bookmark and Share   
 index > Windows Forms General > show time
 

show time

hello, im struggling with the timer.

it is my wish to display an intro screen for 20 seconds. then automatically load

the next form. i cant find anything in any of my books. any pointers would be very welcome.

fugu996  Sunday, April 09, 2006 6:43 PM

never mind people, after a little tinker i found out how its done. i've posted the code for other to find if they need.

Private Sub InitializeTimer()

Timer1.Interval = 20000

Timer1.Enabled = True

End Sub

Private Sub Timer1_Tick(ByVal Sender As Object, ByVal e As EventArgs) Handles Timer1.Tick

Dim form2 As New Form2

Form1.ActiveForm.Visible = False

form2.Show()

form2.Visible = True

Timer1.Enabled = False

End Sub

Private Sub Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.Load

Timer1.Enabled = True

End Sub

fugu996  Sunday, April 09, 2006 9:05 PM

never mind people, after a little tinker i found out how its done. i've posted the code for other to find if they need.

Private Sub InitializeTimer()

Timer1.Interval = 20000

Timer1.Enabled = True

End Sub

Private Sub Timer1_Tick(ByVal Sender As Object, ByVal e As EventArgs) Handles Timer1.Tick

Dim form2 As New Form2

Form1.ActiveForm.Visible = False

form2.Show()

form2.Visible = True

Timer1.Enabled = False

End Sub

Private Sub Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.Load

Timer1.Enabled = True

End Sub

fugu996  Sunday, April 09, 2006 9:05 PM

You can use google to search for other answers

Custom Search

More Threads

• displaying image in the listview column
• Ghost code.
• C# Windows form screenpop Visible and BringToFront
• Copy Array with Array Copy
• Label text changed seems to produce some kind form's refresh
• Cancel Selected Index Change of ListView 2.0
• I need help setting up a printer on a local network
• How to load an image from local directory....
• Toplevel property in vb.net
• listbox