Advertisement
NeverPool

Closing Confirmation

Jun 1st, 2011
385
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VB.NET 0.27 KB | None | 0 0
  1. Private Sub Form1_Closing(ByVal sender As Object, ByVal e As System.ComponentModel.CancelEventArgs)
  2.      If MessageBox.Show("Do you want to close the application?","Close Application",MessageBoxButtons.YesNo) = DialogResult.No Then
  3.           e.Cancel = True
  4.      End If
  5. End Sub
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement