Link to home
Start Free TrialLog in
Avatar of NeoTek
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.
ASKER CERTIFIED SOLUTION
Avatar of Mike Tomlinson
Mike Tomlinson
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial