Results 1 to 10 of 10

Thread: [2005] Delete warning with bindingnavigator problem

Threaded View

  1. #4
    PowerPoster
    Join Date
    Apr 2005
    Location
    Debug.Print
    Posts
    3,885

    Re: [2005] Delete warning with bindingnavigator problem

    vb Code:
    1. Private Sub BindingNavigatorDeleteItem_Click(ByVal sender As System.Object, _
    2.                                              ByVal e As System.EventArgs) Handles BindingNavigatorDeleteItem.Click
    3.     If Me.BindingNavigatorDeleteItem.Text = "&Delete" Then
    4.         If MessageBox.Show("Delete this record?", _
    5.                            "Confirm Delete", _
    6.                            MessageBoxButtons.YesNo, _
    7.                            MessageBoxIcon.Question) = Windows.Forms.DialogResult.No Then
    8.             'if no, do something
    9.         Else
    10.             'If yes, do something else
    11.         End If
    12.     End If
    13. End Sub

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width