Loading and Unloading forms (Resolved!)
I have an app that starts in Sub Main by checking to see if the app is already running, and if not, it loads the splash form
Code:
Private Sub Main()
If App.PrevInstance Then
End
Else
frmSplash.Show
End If
End Sub
the splash form will hide after 10 seconds or if the user clicks on it, and then Loads MainForm---
Code:
Private Sub Form_Load()
'do a bunch of waiting and stuff
Load Mainfrm
End Sub
and in the Load MainForm event I unload frmSplash
Code:
Private Sub Form_Load()
Unload frmSplash
'do a bunch more stuff
End Sub
my problem is that Sub Main never completes and when I unload frmSplash, I get an "Object was Unloaded error"
How do I get around this, OnError Resume Next??????
kevin