Sixem

.NET Confirmation Dialog

Jul 30th, 2013
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VB.NET 0.27 KB | None | 0 0
  1. 'Found On MSDN
  2.  
  3.             Dim answer As DialogResult
  4.             answer = MessageBox.Show("Are you sure?", "Yes/no sample", MessageBoxButtons.YesNo, MessageBoxIcon.Question)
  5.             If answer = vbYes Then
  6.                 Debug.Print("I'm Sure")
  7.             End If
Advertisement
Add Comment
Please, Sign In to add comment