I have a vb.net application that contains 2 forms. When I try to close the project, the form disappears, but the projct is still running....I have to hi tthe stop button to close it out all the way.
Here is the code I have to get to form2 and back to form1:
'To form2
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim frmfind As New DumbInvoice
frmfind.Show()
Me.Hide()
End Sub
'Back to Form1
Private Sub btnback_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnback.Click
Dim frmmain As New frmmarkpaid
frmmain.Show()
frmmain.txtinvnum.Text = lblinvfin.Text
Me.Close()
End Sub
Does anyone know what I have to do to get it to close out all the way.
Here is the code I have to get to form2 and back to form1:
'To form2
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim frmfind As New DumbInvoice
frmfind.Show()
Me.Hide()
End Sub
'Back to Form1
Private Sub btnback_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnback.Click
Dim frmmain As New frmmarkpaid
frmmain.Show()
frmmain.txtinvnum.Text = lblinvfin.Text
Me.Close()
End Sub
Does anyone know what I have to do to get it to close out all the way.