Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

message box with button "Yes to All" and "No to All"

Is this possible? The MessageBox.Show methods apparently force me to use one of the MessageBoxButton enums, and none of them has the Yes to all and no to all option. Is it possible to display a message box dialog having Yes To All and No to All?

like image 251
Louis Rhys Avatar asked Nov 21 '11 11:11

Louis Rhys


2 Answers

You can always create your own dialog that looks like a MessageBox and has the buttons you need. I don't think you can override MessageBox's look.

like image 158
zmbq Avatar answered Oct 19 '22 23:10

zmbq


Depending on which technology you are actually using (both WinForms and WPF are tagged) these articles should give you a good place to start.

WPF Common TaskDialog for Vista and XP:

http://www.codeproject.com/KB/WPF/WPFTaskDialogVistaAndXP.aspx

Customizable WPF Messagebox:

http://blogs.microsoft.co.il/blogs/arik/archive/2011/05/26/a-customizable-wpf-messagebox.aspx

WinForms - Disecting the Messagebox:

http://www.codeproject.com/KB/dialog/MessageBoxEx.aspx

like image 41
robowahoo Avatar answered Oct 19 '22 21:10

robowahoo