带有按钮的消息框“对所有”和“不向所有”

时间:2021-11-17 15:53:38

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?

这是可能的吗?对话框。Show方法显然迫使我使用messageboxboxbutton enums中的一个,它们中没有一个选项是“对所有人”,也没有一个选项是“对所有人”。是否有可能显示一个消息框对话框,对所有人都是,对所有人不是?

3 个解决方案

#1


4  

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.

您始终可以创建自己的对话框,该对话框看起来像一个MessageBox,并具有所需的按钮。我认为你无法覆盖MessageBox的外观。

#2


1  

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

根据您实际使用的技术(WinForms和WPF都被标记),这些文章应该为您提供一个良好的起点。

WPF Common TaskDialog for Vista and XP:

WPF常见的Vista和XP任务对话框:

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

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

Customizable WPF Messagebox:

可定制的WPF对话框:

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

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

WinForms - Disecting the Messagebox:

WinForms -分割消息框:

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

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

#3


0  

MessageBox is Windows Forms component. It would be not best idea to use it in WPF applications. But If you want to try, you could find something useful here

MessageBox是Windows窗体组件。在WPF应用程序中使用它并不是个好主意。但是如果你想尝试,你可以在这里找到一些有用的东西

#1


4  

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.

您始终可以创建自己的对话框,该对话框看起来像一个MessageBox,并具有所需的按钮。我认为你无法覆盖MessageBox的外观。

#2


1  

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

根据您实际使用的技术(WinForms和WPF都被标记),这些文章应该为您提供一个良好的起点。

WPF Common TaskDialog for Vista and XP:

WPF常见的Vista和XP任务对话框:

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

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

Customizable WPF Messagebox:

可定制的WPF对话框:

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

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

WinForms - Disecting the Messagebox:

WinForms -分割消息框:

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

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

#3


0  

MessageBox is Windows Forms component. It would be not best idea to use it in WPF applications. But If you want to try, you could find something useful here

MessageBox是Windows窗体组件。在WPF应用程序中使用它并不是个好主意。但是如果你想尝试,你可以在这里找到一些有用的东西