The Application.Exit() call can be made in the child form's FormClosed event to exist the app when the child form is closed.
Private Sub Form_Child_FormClosed(sender As Object, e As System.Windows.Forms.FormClosedEventArgs) Handles Me.FormClosed
Application.Exit()
End Sub
This blog is a depository for things I have found regarding VB.NET and C#.NET development (and other things I may need to remember). This blog is primarily for my own reference, but if the information I found is useful to others, then that is great. If others want to contribute with comments or other information, then that is great too.
Tuesday, November 27, 2012
Unload Event equivalent in VB.NET
For VB.NET, you can use the FormClosed or FormClosing in place of the VB6 Unload event.
Labels:
VB.NET
Subscribe to:
Posts (Atom)