Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

Hi,

 

As part of our funky UI (cheers to the design team!!), we've created some textboxes with curved edges...They've 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 we'd like to make it transparent to give it a nicely rounded egde...does anyone have any ideas as to how we'd do this?

 

Thanks in advance

Kieron

Posted

Don't worry about it - found the solution.

 

Here it is if anyone wants it...

 

Me.SetStyle(ControlStyles.SupportsTransparentBackColor, True)

Me.BackColor = Color.Transparent

Posted

hey thanks for that one.. i'm considering rounding the edges of a control i've written and that will save me a bit headache i'm sure

 

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

i'm not lazy i'm just resting before i get tired.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...