
01-20-2004, 10:39 PM
|
 |
Village VB Idiot
* Expert *
|
|
Join Date: Jan 2003
Location: Idaho
Posts: 1,850
|
|
Use the Closing event:
Code:
Private Sub Form1_Closing(ByVal sender As Object, ByVal e As System.ComponentModel.CancelEventArgs) Handles MyBase.Closing
If Microsoft.VisualBasic.MsgBox("Quit now?", MsgBoxStyle.YesNo, "Confirm Exit") = MsgBoxResult.No Then e.Cancel = True
End Sub
|
|