Adding transparency support to WinForms control?

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
 

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

Top