Making a UserControl Background Transparent

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I went thru the walkthough:"Walktrough: Authoring a User Control with Visual
c#".
All is fine except that when I add this control to my form that has a map as
a background, I can't see through the control. The control's BackColor won't
accept Transparent. How do I do this so that the background map shows through?
 
this.SetStyle(ControlStyles.SupportsTransparentBackColor,true);

this.BackColor = Color.Transparent;

Try this!
 

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