Best way to close a form and load another
Posted on 2008-10-11
My application consists of multiple forms. What is the best way to unload one form and load another one?
I know about hide() but hide does not release the resources. Is there a way to tell the run time environment that this form can be unloaded and resources freed.
In one form I have
If res = True Then
This works fine ... when the condition is true, current form is closed and MainAssistant shows up.
In MainAssistant I have
Private Sub AddToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles AddToolStripMenuItem.Click
When this menu item is clicked, NewForm shows up momentarily and then closes. Why? The code at both the places is the same.