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:
  1. Private Sub tmrSplash_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles tmrSplash.Tick
  2.         Dim objMain As New frmMain()
  3.         tmrSplash.Enabled = False
  4.         objMain.Show()
  5.         Me.Close()
  6.     End Sub

But the Me.Close() closes the entire application.

What am I doing wrong?

Regards,


Matt.