![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Newbie
Join Date: Mar 2006
Posts: 2
Rep Power: 0
![]() |
Help with Timer
I am trying to make it so that when the spash screen timer ends it opens the report form. Its working on closing the splash window on timer and opening the reportform, but the reportform keep showing over and over every 8 seconds... Please can someone help me?
Here is the code: Private Sub Timer_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer.Tick
Me.Visible = False
Dim MyForm As ReportForm
MyForm = New ReportForm
MyForm.Show()
End Sub |
|
|
|
|
|
#2 |
|
Programmer
|
I odn't know VB.NET but I know what the problem is. YOu never disabled your timer when you opened the window. I'm expecting it to be something along the lines of...
Private Sub Timer_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer.Tick
Timer.Enabled = False
Me.Visible = False
Dim MyForm As ReportForm
MyForm = New ReportForm
MyForm.Show()
End Sub![]() |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|