How do you close a program in VB.NET through any of the forms?
is there like a Unload.Me or something like it?
Printable View
How do you close a program in VB.NET through any of the forms?
is there like a Unload.Me or something like it?
Here's what I do to close my progam:
VB Code:
Dim Result As DialogResult Result = MessageBox.Show("Do you really wish to exit?", "Exit Reviewer", MessageBoxButtons.YesNo, MessageBoxIcon.Question) If Result = DialogResult.Yes Then Application.Exit() End If