Ok I got an application where the initial form is a list box where you select the form you want and then you click a button and it hides the main form and then displays the form you selected.

Ok, then on the second form, I have a back button with this code:

CODE
        Dim GeoF As New GeometryForm
        GeoF.Show()
        Me.Close()


Where the GeometryForm is the main form.


Ok all of the above works.


However, when I get back to the main form and click "Exit" it closes the program however it is still in the memroy and even Visual Studio says it isn't done debuggin.

I've tried both of the following for the exit button on the main form.

CODE
Private Sub BackButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BackButton.Click
          Me.Dispose()
End Sub


CODE
Private Sub BackButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BackButton.Click
          Me.Close()
End Sub


I've also tried changing the "Private" to Public for the exit button, but that didn't change anything at all. (or affect anything at all)

Any ideas would be greatly appreciated... I want it to really close