Message box
How do I make a message that say yes or no?
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend4days leftRegister
Iftikar HussainRank #423 · 5.9K reputationPosted Jul 5, 2013, 4:30 AM EDT
You can do like this
Regards,
Iftikar
Tan Kai Kai114 reputationPosted Jul 5, 2013, 4:32 AM EDT
Iftikar HussainRank #423 · 5.9K reputationPosted Jul 5, 2013, 4:38 AM EDT
Regards,
Iftikar
Tan Kai Kai114 reputationPosted Jul 5, 2013, 4:41 AM EDT
I got Red line on the dialogResult, MessageBox and MessageBoxButton
Do I need to put some thing on it?
Iftikar HussainRank #423 · 5.9K reputationPosted Jul 5, 2013, 4:43 AM EDT
Regards,
Iftikar
Iftikar HussainRank #423 · 5.9K reputationPosted Jul 5, 2013, 4:45 AM EDT
http://msdn.microsoft.com/en-us/library/system.windows.forms.form.dialogresult.aspx
Regards,
Iftikar
Iftikar HussainRank #423 · 5.9K reputationPosted Jul 5, 2013, 4:46 AM EDT
Regards,
Iftikar
Sanjeeb LenkaRank #301 · 8.3K reputationPosted Jul 5, 2013, 4:50 AM EDT
http://www.dotnetperls.com/messagebox-show
Tan Kai Kai114 reputationPosted Jul 5, 2013, 4:52 AM EDT
VulpesRank #55 · 29.2K reputationPosted Jul 5, 2013, 5:07 AM EDT
If it is, then you can use a Javascript confirm box though the buttons for this are OK and Cancel rather than Yes and No:
Tan Kai Kai114 reputationPosted Jul 5, 2013, 5:17 AM EDT
but do you know how to change the message box name?
VulpesRank #55 · 29.2K reputationPosted Jul 5, 2013, 5:30 AM EDT
OnClientClick="return confirm('Deletion Confirmation Box\n\nDo you really want to delete?');"
Iftikar HussainRank #423 · 5.9K reputationPosted Jul 5, 2013, 7:13 AM EDT
You can use JQuery to customize your confirmation box. Like color, font etc. Please refer the below link
http://projectshadowlight.org/jquery-easy-confirm-dialog/
http://jqueryui.com/dialog/#modal-confirmation
Regards,
Iftikar