Transparent backgroun usercontrol

You cannot make any control transparent, and the closest thing is more like a chameleon effect where the control takes on the backcolor or background picture as you mentioned.
If controls allowed transparency, then youd at least be able to load a GIF into a picturebox and see through it to controls underneath. :)
Instead, you have to draw them.
Which unfortunately means that you cannot make it a control.

You can create a class or a component that does this, and then have a Draw() method that will draw it with a Graphics object. :)
 
Try inheriting from panel og control
i have made several transparent usercontrols

i usualy inherit control
and use:

Me.SetStyle(ControlStyles.DoubleBuffer, True)
Me.SetStyle(ControlStyles.AllPaintingInWmPaint, True)
Me.SetStyle(ControlStyles.SupportsTransparentBackColor, True)
Me.SetStyle(ControlStyles.UserPaint, True)
 
Back
Top