Is Control.Transparent a hoax?

G

Guest

I have been trying to create some semblance of
transparency in my Controls (Panels, Buttons etc) by
sublassing and adding the following lines in the Sub New()

Me.SetStyle(ControlStyles.SupportsTransparentBackColor,
True)
Me.SetStyle(ControlStyles.UserPaint, True)
Me.BackColor = Color.Transparent

This is what is recommended in the docs. All I get are
controls just as dense and opaque as the normal
controls. I am beginning to thinks it's all a hoax. Or
am I missing something?

Javed
 
H

Herfried K. Wagner [MVP]

* said:
I have been trying to create some semblance of
transparency in my Controls (Panels, Buttons etc) by
sublassing and adding the following lines in the Sub New()

Me.SetStyle(ControlStyles.SupportsTransparentBackColor,
True)
Me.SetStyle(ControlStyles.UserPaint, True)
Me.BackColor = Color.Transparent

This is what is recommended in the docs. All I get are
controls just as dense and opaque as the normal
controls. I am beginning to thinks it's all a hoax. Or
am I missing something?

Which Windows version are you using?
 
G

Guest

Oh, and I am calling Application.EnableVisualStyles when
starting the App. Thanks for your help.
Javed
 

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