C# Irregular shaped user controls.

D

dr

C# Irregular shaped user controls.

How to make usercontrol have transparency key for its background image? I
want to have irregular shaped user controls on my form. like a funny shaped
button. This works fine for irregular shaped forms becuase they have a
transparency key field, but user controls dont have this field. note i do
not want to see the desktop. I want to see any other controls or form behind
the irregularly shaped user control. And i want it to remain looking ok when
i resize the irregularly shaped user control.
 
M

Michael C

dr said:
C# Irregular shaped user controls.

How to make usercontrol have transparency key for its background image? I
want to have irregular shaped user controls on my form. like a funny
shaped button. This works fine for irregular shaped forms becuase they
have a transparency key field, but user controls dont have this field.
note i do not want to see the desktop. I want to see any other controls or
form behind the irregularly shaped user control. And i want it to remain
looking ok when i resize the irregularly shaped user control.

Have a look into UserControl.Region.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top