All pastes #412950 Raw Edit

marky-b

public text v1 · immutable
#412950 ·published 2007-03-28 01:29 UTC
rendered paste body
' Display a message box to determine if the user would like to edit an existing entry

Dim response As DialogResult

MessageBox.Show("There is already a record for " & firstNameString & _
   " " & lastNameString & "." & ControlChars.NewLine & _
   "Would you like to edit the existing record?", "Input Error", MessageBoxButtons.YesNo)

If response = Windows.Forms.DialogResult.Yes Then
   frmEdit.Show()
End If