如何在用户控件创建隐形地区 [英] how do I create invisible regions on a user control

查看:97
本文介绍了如何在用户控件创建隐形地区的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想提出我的用户控制有像环绕着圆形或不规则形状的区域看不见的地方。我已经看到了这一个system.windows.form,但不与system.windows.form.usercontrol完成。如何做到这一点?

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的

.net 2.0,c#,winform

推荐答案

您可以设置控件的区域以一个不规则的的GraphicsPath 。下面是显示的文章如何

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

这篇关于如何在用户控件创建隐形地区的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆