messageBox background color

B

Brady

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?
 
K

Kenneth Cochran

Brady said:
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?

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top