Hi,
yes, the first line of code of the start form:
Before, I had some code like this:Code:Public Class frmLogin
Then, The debugger was indicating this line:Code:Module mdlStart Public Sub Main() Try SubMain() Catch ex As Exception HandleUnhandledException(ex) End Try End Sub Public Sub SubMain() AddHandler System.AppDomain.CurrentDomain.UnhandledException, AddressOf OnUnhandledException Application.Run(New frmLogin) End Sub Private Sub OnUnhandledException(ByVal sender As Object, ByVal e As UnhandledExceptionEventArgs) HandleUnhandledException(e.ExceptionObject) End Sub Private Sub HandleUnhandledException(ByVal o As Object) Dim e As Exception = DirectCast(o, Exception) MessageBox.Show(e.StackTrace, "Unhandled exception.") Application.Exit() End Sub End Module
regardsCode:Application.Run(New frmLogin)




Reply With Quote