Home All Groups Group Topic Archive Search About

How do i change the back color of messagebox

Author
11 Jan 2005 11:37 AM
Bala
How do i change the back color of MessageBox

Author
11 Jan 2005 1:45 PM
Carlos J. Quintero [.NET MVP]
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


Show quote
"Bala" <B***@discussions.microsoft.com> escribió en el mensaje
news:F310CC7F-61EC-425C-8F00-DC72C9AD27B3@microsoft.com...
> How do i change the back color of MessageBox
Author
12 Jan 2005 10:28 AM
Romain TAILLANDIER
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


Show quote
"Bala" <B***@discussions.microsoft.com> a écrit dans le message de
news:F310CC7F-61EC-425C-8F00-DC72C9AD27B3@microsoft.com...
> How do i change the back color of MessageBox
Author
12 Jan 2005 2:10 PM
Carlos J. Quintero [.NET MVP]
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


Show quote
"Romain TAILLANDIER" <RomainDotTaillandier_nospam@MaintagDotCom_remove>
escribió en el mensaje news:ekgH4FJ%23EHA.3616@TK2MSFTNGP11.phx.gbl...
> 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
>

AddThis Social Bookmark Button