1
Reply

Can a UserControl be made transparent?

firefrank

firefrank

Mar 10 2004 11:32 AM
1.9k
I'm building a custom control ( UserControl ) in a windows control library. If you set the background color to transparent, you get a message saying you can't do it. However, on MSDN, I dug up this (which has to be in the control's constructor: SetStyle(ControlStyles.SupportsTransparentBackColor, true); this.BackColor = Color.Transparent; But even with this my control remains gray...

Answers (1)