NeoTek
asked on
Simple Form Question
What is the usual way to open one form and close another? When I run the following code:
mainForm = New frmMain
mainForm.Show()
mainForm.Activate()
mainForm = Nothing
Me.Close()
The whole application closes. When I change the last line to
Me.Hide()
The application doesn't close fully when the user clicks on the "X" on frmMain.
mainForm = New frmMain
mainForm.Show()
mainForm.Activate()
mainForm = Nothing
Me.Close()
The whole application closes. When I change the last line to
Me.Hide()
The application doesn't close fully when the user clicks on the "X" on frmMain.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.