Groups | Blog | Home
all groups > dotnet windows forms > april 2005 >

dotnet windows forms : Transparent UserControl


Josh
4/21/2005 5:31:30 PM
I'm going Mad!

Has anyone been able to give a UserControl a transparent Background

I've tried...

this.SetStyle(ControlStyles.SupportsTransparentBackColor, true);

this.BackColor = Color.Transparent;

this.UpdateStyles();


.... but it does not work.

Herfried K. Wagner [MVP]
4/21/2005 6:42:02 PM
"Josh" <s@a.com> schrieb:
[quoted text, click to view]

Creating transparent controls that can handle mouse events
<URL:http://dotnet.mvps.org/dotnet/faqs/?id=transparentcontrol&lang=en>

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
Alex
4/22/2005 10:57:51 AM

[quoted text, click to view]
<URL:http://dotnet.mvps.org/dotnet/faqs/?id=3Dtransparentcontrol&lang=3De=
n>

What about semi-transparent controls (on WinXP)?

--=20
AddThis Social Bookmark Button