Delete a record in windows using C# language [Resolved]

Posted by suri1319-13143 under C# on 12/28/2011 | Points: 10 | Views : 922 | Status : [Member] | Replies : 5
Before delete a record conform message box will be show like (yes,no) in c#, please send the code to suri1319@gmail.com




Responses

Posted by: Naraayanan on: 12/28/2011 [Member] Starter | Points: 50

Up
0
Down

Resolved
hi,
  Click Event 

DialogResult dr = MessageBox.Show("Do you want to delete a record", "Test", MessageBoxButtons.YesNo);
if (dr == DialogResult.Yes )
{
// DO Sommthig(Delete a record)
}
else if (dr == DialogResult.No)
{
//Do Something(Error message)
}


Regards,
Lakshmi Naraayanan.S
http://dotnettechrocks.blogspot.in/
http://abaprocker.blogspot.com/

suri1319-13143, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: suri1319-13143 on: 12/28/2011 [Member] Starter | Points: 25

Up
0
Down
hi.. my dear naraayanan thanks your prompt response it has save my day

suri1319-13143, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Naraayanan on: 12/29/2011 [Member] Starter | Points: 25

Up
0
Down
hi
No issues and Thanks

Regards,
Lakshmi Naraayanan.S
http://dotnettechrocks.blogspot.in/
http://abaprocker.blogspot.com/

suri1319-13143, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Naraayanan on: 12/29/2011 [Member] Starter | Points: 25

Up
0
Down
Hi,
Please mark my answer

Regards,
Lakshmi Naraayanan.S
http://dotnettechrocks.blogspot.in/
http://abaprocker.blogspot.com/

suri1319-13143, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: suri1319-13143 on: 12/30/2011 [Member] Starter | Points: 25

Up
0
Down
excellent code

suri1319-13143, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response