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
  • 11,047
  • 34
  • 101
  • 140

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
  • 53,046
  • 9
  • 139
  • 151
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
  • 489,969
  • 99
  • 883
  • 1,009