hi im a tryin to figure out how i can get theis to work. when i press the x button i want it to either let me delete the field if its empty or tell me that i cant because it has something in it. any help would be great. i no its not hard but for some reason just cant think of it.
Code:
Private Sub BindingNavigatorDeleteItem1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BindingNavigatorDeleteItem1.Click
' If Me.grdBankNotes.Columns null Then
'
Else
MessageBox.Show("Can not delete a bank account that has notes attached to it")
End If
End Sub
Code:
Private Sub BindingNavigatorDeleteItem1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BindingNavigatorDeleteItem1.Click
' If Me.grdBankNotes.Columns null Then
'
Else
MessageBox.Show("Can not delete a bank account that has notes attached to it")
End If
End Sub