Hi, I am very new at vb.net. I am using 2008. I am creating a project that consists of a menu form and several sub menus. i have been able to set up a button on the menu form that will open up the subform and set up an exit button on the subform button to go back to the menu form. however, now I have 2 instances of the menu form, I am not closing the menu form on openning the subform or I am not returning to the original menu form. where am I going wrong???
Code:
Private Sub Button2_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button2.Click
Dim insert_button As New insert_types
insert_button.Show()
End Sub
Private Sub Exit_insert_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Exit_insert.Click
Dim exit_button As New menu
Me.Dispose()
exit_button.Show()
End Sub