-
MDI
I have a logon screen thats not part of my MDI. With a successful login the user then gets taken to the MDI. The problem is with this code:
Code:
frmCalling1 = New frmCalling()
frmCalling1.Show()
Me.Close()
when the logon screen closes the entire application ends. If I take out the me.close, it goes to the MDI, but the login screen stays open in the background...any suggestions how to close the login screen without closing the entire app?
-
Don't make the login screen the startup form. In .NET the startup form carries the application thread and so if it gets closed the whole app gets closed. You can either use a Sub Main and ShowDialog for the login or show the login from within the MDI (before showing the MDI).
-
thanks Edneeis...I ended up placing it in the Sub Main...working fine