usercontrol background colour

  • Thread starter Thread starter Tom
  • Start date Start date
T

Tom

Hi friends

I'm having trouble setting the background color of a user control to
transparent ! why is that ?

any help appreciated

Thanks
Tom
 
Tom,
I'm having trouble setting the background color of a user control to
transparent ! why is that ?

I believe you need to set the following properties:

this.BackColor = Color.Transparent;
this.Style(ControlStyles.SupportsTransparentBackColor, true);


Phil...
 
Phil Jenson said:
Tom,


I believe you need to set the following properties:

this.BackColor = Color.Transparent;
this.Style(ControlStyles.SupportsTransparentBackColor, true);


Phil...

Sorry phil but this is totally unaccepted by C# there is no "Style reference" .

if the first line is placed in the control attribute code it crashes any
windows program.
 
Back
Top