Okay I understand how to override the OnPaintBackground method, but how do I
do it for specific controls?
I tried this:
protected override void OnPaintBackground(PaintEventArgs Pe)
{
comboBox1.BackColor = Color.DarkBlue;
}
But it simply turned the control blue when it was enabled...when I disabled
the control it went back to the normal windows color. Not to mention that
all the other controls and the form itself were transparent (Cool but not
the effect I was after.
Thanks,
Ron
"Michael H" <gf*****@gmail.com> wrote in message
news:7o********************************@4ax.com...
On Tue, 10 Jan 2006 14:15:43 -0500, "RSH" <wa*************@yahoo.com>
wrote:
-->
--> This might be a dumb question but I have searched everywhere...I
have a form
--> which uses a custom background color. I have set the control's
backgrounds
--> to transparent, which works great. But when i disable the
controls, they
--> all have the standard beige Windows background, is there a way to
set the
--> disabled background color too??
-->
--> Thanks,
--> Ron
-->
Ron,
Can you just override the OnPaintBackground methods of the controls
you're wanting to be transparent?