I have a strange problem:
When I place this code in ApplicationEvents.vb
All of it works, except frmMain.Hide() doesn't work.
Does anyone knows this problem?
When I place this code in ApplicationEvents.vb
VB.NET:
Private Sub MyApplication_UnhandledException(ByVal sender As Object, ByVal e As Microsoft.VisualBasic.ApplicationServices.UnhandledExceptionEventArgs) Handles Me.UnhandledException
'hide forms
frmMain.Hide()
e.ExitApplication = False
'more code
'end
End
End Sub
All of it works, except frmMain.Hide() doesn't work.
Does anyone knows this problem?