Hi,

yes, the first line of code of the start form:

Code:
Public Class frmLogin
Before, I had some code like this:

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
Then, The debugger was indicating this line:

Code:
Application.Run(New frmLogin)
regards