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.
 

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

Back
Top