简体   繁体   中英

how do I create invisible regions on a user control

I would like to make my user control have invisible areas like the areas that surround a circle or an irregular shape. I have seen this done with a system.windows.form but not with a system.windows.form.usercontrol. How is this done?

.net 2.0,c#,winform

You can set the control's Region to an irregular GraphicsPath . Here's an article that shows how to create irregular shaped menuitems

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM