Adding transparency support to WinForms control?

  • Thread starter Thread starter David Veeneman
  • Start date Start date
D

David Veeneman

Can transparency support be added to a WinForms control that does not
natively support it?

I'd like to add a TrackBar control to my Windows form. But the form uses a
gradient background, so I can't simply set the BackColor property of the
TrackBar to match the form. I have tried inheriting a UserControl from the
TrackBar and setting the ControlStyles.SupportsTransparentBackColor flag to
true in the UserControl's constructor, with no luck.

If it can be done, is there an article somewhere that explains how to do it?
Thanks in advance

David Veeneman
Foresight Systems
 
Back
Top