Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

messageBox background color

2 views
Skip to first unread message

Brady

unread,
Feb 9, 2009, 2:51:02 PM2/9/09
to
I have a C# Win App using vs2003 and I need message boxes with different
colored backgrounds.
Can I change the MessageBox background color or do I need to build my own
form?

Kenneth Cochran

unread,
Feb 12, 2009, 9:31:33 AM2/12/09
to

System.Windows.Forms.MessageBox is a sealed class and the background
color is not an exposed property. You can try accessing the class at
runtime using reflection or you could write your own custom MessageBox:
http://www.codeproject.com/KB/dialog/MessageBoxEx.aspx

0 new messages