11-25-2012, 03:45 PM
Do you need help with showing the confirmation box? Or actually deleting the records?
If it is the former, the operation is really quick. Something like this would work:
[code2=vbnet]Dim confirmation As DialogResult = MessageBox.Show("Do you really want to delete these users?", "Are you sure?", MessageBoxButtons.YesNo)
If (confirmation = Windows.Forms.DialogResult.Yes) Then
'Delete users
Else
'Don't delete users
End If[/code2]
If you need help deleting the users, that code is a little more involved (since it relays with the DB), but let us know if you need help with that!
If it is the former, the operation is really quick. Something like this would work:
[code2=vbnet]Dim confirmation As DialogResult = MessageBox.Show("Do you really want to delete these users?", "Are you sure?", MessageBoxButtons.YesNo)
If (confirmation = Windows.Forms.DialogResult.Yes) Then
'Delete users
Else
'Don't delete users
End If[/code2]
If you need help deleting the users, that code is a little more involved (since it relays with the DB), but let us know if you need help with that!