D
Damian
Hi !
I am trying to dispose of the startup form in my application a login
form (frmLogin) after it calls the main form (frmMain). I cant seem to
get it to work. Here is my code.
frmLogin Code
==============
Sub btnSave_Click
Dim mainF As New frmMain
mainF.Show()
Me.Dispose()
End Sub
The main form flashes up and then the whole app closes down as it goes
to the next line (Me.Dispose()). What needs to happen is the main form
loads then the login form is not visible and unloaded from memory.
Any help is appreciated, thanks !
I am trying to dispose of the startup form in my application a login
form (frmLogin) after it calls the main form (frmMain). I cant seem to
get it to work. Here is my code.
frmLogin Code
==============
Sub btnSave_Click
Dim mainF As New frmMain
mainF.Show()
Me.Dispose()
End Sub
The main form flashes up and then the whole app closes down as it goes
to the next line (Me.Dispose()). What needs to happen is the main form
loads then the login form is not visible and unloaded from memory.
Any help is appreciated, thanks !