Ranvijay Kumar

Ranvijay Kumar

  • NA
  • 4
  • 6.9k

How to add code for MesageBoxButton

May 5 2012 10:41 PM
I want my form submit when I click MessageBoxButton OK and if I click Cancel button my form not be submitted and when my form submit, text box radio button and other control  will initialize and text box will be blank. Please help to right code.
such as
 private void btnSubmit_Click(object sender, EventArgs e)
{
MessageBox.Show("Prese ok for submit data....","Information ! Check Data and pres ok for submited other wise pres cancel button for Cancellation......... ",MessageBoxButtonOKCancel, MessageBoxButtonIcon.Information);

//and then..........what we write
}

Answers (1)