Making parts of a UserControl transparent...

Kieron

Member
Joined
Nov 19, 2002
Messages
15
Location
England
Hi,

As part of our funky UI (cheers to the design team!!), weve created some textboxes with curved edges...Theyve a thin borderline running around a curved rectangle, the problem is that the background of the actual UserControl shows the corners (when used on a gradient/ picture background) and wed like to make it transparent to give it a nicely rounded egde...does anyone have any ideas as to how wed do this?

Thanks in advance
Kieron
 
Dont worry about it - found the solution.

Here it is if anyone wants it...

Me.SetStyle(ControlStyles.SupportsTransparentBackColor, True)
Me.BackColor = Color.Transparent
 
hey thanks for that one.. im considering rounding the edges of a control ive written and that will save me a bit headache im sure

(is it me or did this post work out kinda backwards)
 
Back
Top