1

Possible Duplicate:
How to change button text for Yes & No buttons on MessageBox.Show Dialog?

In a Windows Forms application I have a MessageBox with YesNo buttons. I want to change the text on the buttons (from "Yes", "No" to something custom).

Community
  • 1
  • 1
kjv
  • 10,587
  • 33
  • 98
  • 139

2 Answers2

4

If I were you I'd create my own MessageBox dialog. It's not that hard and I'm sure you'd be able to do this faster than hacking the standard MessageBox.

Jay Riggs
  • 52,110
  • 9
  • 138
  • 148
0

Your only possible "customization" with the winforms MessageBox is to use the MessageBoxButton enumeration when creating the MessageBox.

It is fairly limited, so looking for a third party message box or creating your own dialog box may be a better choice.

Oded
  • 477,625
  • 97
  • 867
  • 998