Hi I'm very new to this software (version 6.0) and when constructing small .exe's I find that when I exit the program that the program is still running when I open task manager. I have figured out why- the code I use to switch between forms eg.

Private Sub cmdnext_Click()
Form1.Hide
Form2.Show
End Sub

OR

Private Sub cmdnext_Click()
Unload Form1
Load Form2
End Sub

The problem is my exit commands only exit the current form so when I exit, the 'hidden' form(s) are still running. Is there anyway of exiting the whole application instead of typing-

Unload Form1
Unload Form2
Unload Form3
etc....

-for my exit command code.

Open to any suggestions thanks.