Miguel
Miguel

Reputation: 947

Change BackColor of a custom user control to transparent

I am building a custom user control in c#, and the look of the control is an elipse, but the corners of the control can be seen with the default color.

I think that the best way to solve this is making the backcolor of the control transparent, but if i do it in properties doesn't work.

Upvotes: 1

Views: 1049

Answers (1)

Eric
Eric

Reputation: 6435

In the control's constructor, try adding a call to SetStyle(ControlStyles.SupportsTransparentBackColor)

Upvotes: 1

Related Questions