I have a splash screen form (frmSplash) and also a MDI Form (frmMain).
frmSplash loads first and has a timer on it (tmrSplash) it runs the following code on the tick event :
VB Code:
Private Sub tmrSplash_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles tmrSplash.Tick Dim objMain As New frmMain() tmrSplash.Enabled = False objMain.Show() Me.Close() End Sub
But the Me.Close() closes the entire application.
What am I doing wrong?
Regards,
Matt.




Reply With Quote