Visual Basic Express Edition
In Project / Properties, is "Shutdown mode" set to "When startup form closes"
do you have any form closed or closing events
the point is, code in them, can cancel closing. Do you have any resources or files open
Hi Drags,
I have downloaded and viewed your source project.
Here are two corrections:
1. Change Shutdown mode to "When last form closes" in Project Properties.
2. Change Me.Hide to Me.Close in your main form code.
Public Class Form1 Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Selection.Show() Me.Close() 'Change Me.Hide to Me.Close End Sub
End Class Likewise, when you close a form and open another form, please remember to use Me.Close. Then the process will disappear when you close your application.
Code Block
Regards,
Martin