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!
 
Back
Top