Message Boxes

  • Thread starter Thread starter cmdolcet69
  • Start date Start date
C

cmdolcet69

How canI customize the message box button so that instead of the
standard Yes No I can either rename the Yes or rename the No or even
add a 3rd button?
 
How canI customize the message box button so that instead of the
standard Yes No I can either rename the Yes or rename the No or even
add a 3rd button?

As far as I am aware, you cannot customize the MessageBox. You can
select from several different sets of buttons from the
MessageBoxButton enumeration, but those are all the choices you have.
 
How canI customize the message box button so that instead of the
standard Yes No I can either rename the Yes or rename the No or even
add a 3rd button?

I don't think you can rename existing "MessageBox" buttons because
their language must be based on OS language / version. You must pass
MessageBoxButtons enum to define which buttons to display on
MessageBox.

http://msdn.microsoft.com/en-us/library/system.windows.forms.messageboxbuttons.aspx

Additionaly, you can create a small dialog form to add fancy buttons
or custom text to behave as if it's a messagebox (actually not).

HTH,

Onur Güzel
 
Back
Top