UserControls do not let the BackColor Property to be set to Transparent.
When placed on a color background, they look ugly. Panels and GroupBoxes can
be made transparent. How does one go about doing the same with UserControls.
Thanks
Hi Jav,
In the usercontrol's constructor set the style for supporting transparent
bkg colors
this.SetStyle(ControlStyles.SupportsTransparentBackColor |
ControlStyles.UserPaint, true);
Now you can set the background color you want.

Signature
HTH
Stoitcho Goutsev (100) [C# MVP]
> UserControls do not let the BackColor Property to be set to Transparent.
> When placed on a color background, they look ugly. Panels and GroupBoxes
[quoted text clipped - 3 lines]
>
> Thanks
Jav - 26 Oct 2004 15:33 GMT
Thank you. That did the trick.
Jav
"Stoitcho Goutsev (100) [C# MVP]" wrote:
> Hi Jav,
>
[quoted text clipped - 13 lines]
> >
> > Thanks