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
the splash form will hide after 10 seconds or if the user clicks on it, and then Loads MainForm---Code:Private Sub Main() If App.PrevInstance Then End Else frmSplash.Show End If End Sub
and in the Load MainForm event I unload frmSplashCode:Private Sub Form_Load() 'do a bunch of waiting and stuff Load Mainfrm End Sub
my problem is that Sub Main never completes and when I unload frmSplash, I get an "Object was Unloaded error"Code:Private Sub Form_Load() Unload frmSplash 'do a bunch more stuff End Sub
How do I get around this, OnError Resume Next??????
kevin




Reply With Quote