TransparencyKey

.paul.

Well-known member
Joined
May 22, 2007
Messages
212
Programming Experience
1-3
how can i set the TransparencyKey for a usercontrol?
its not listed as a property of a usercontrol
 
The System.Windows.Forms.UserControl class does not have a property called TransparencyKey so it cannot be set.
However, when using usercontrols, since you would generally create a custom class which inherits UserControl, you could of course add a property called TransparencyKey and implement it's behavior.
 
thats as far as i got.
i'm thinking about subclassing a picturebox somehow.
i was trying to make a transparent picturebox, using a usercontrol that inherits a picturebox. but no transparencykey. i would still be interested to know how to set the background to (real) transparent in a usercontrol though
 
What is your end goal? The most appropriate solution will probably utilize GDI+.

I've moved this post to the Graphics/GDI+ category.
 
Back
Top