I am trying to load a form from my sub main function but the timer never fires can you tell what am i doing wrong.
Thanks
Thanks
Code:
Public Class MainClass
Friend Shared WithEvents t As New Timer()
Public Shared Sub Main()
Dim cl As New MainClass()
t.Interval = 1
t.Enabled = True
cl.LoadSplash()
End Sub
Public Function LoadSplash()
t.Start()
End Function
Private Shared Sub t_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles t.Tick
MsgBox("Event")
End Sub
End Class
[CODE]
thanks