How do i change the back color of messagebox

  • Thread starter Thread starter Guest
  • Start date Start date
AFAIK, you can´t with the standard MessageBox, since it obeys the
preferences of the user for Windows colors (Control Panel, Screen item). So,
you have to use a custom form to show your messages.

--

Carlos J. Quintero

MZ-Tools 4.0: Productivity add-ins for Visual Studio .NET
You can code, design and document much faster.
http://www.mztools.com
 
Have you try to inherit a new class from the MessageBox class ?
I never try it but the MessageBox ins't sealed, so it would be possible.
just have to override a few method or properties, i think

hope that's help
 
The .NET MessageBox class is not a .NET form but a wrapper around the
MessageBox function of the user32.dll, so it obeys user settings.

--

Carlos J. Quintero

MZ-Tools 4.0: Productivity add-ins for Visual Studio .NET
You can code, design and document much faster.
http://www.mztools.com
 
Back
Top