面板边框 [英] Panel borders

查看:112
本文介绍了面板边框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在用C#创建程序.

我喜欢这样做面板边框:
http://img203.imageshack.us/img203/1557/backgroundvs.jpg [ ^ ]

还有角落...

有示例或解决方案吗?

谢谢.

Hi I am creating a program with C#.

I like to do panel borders like this:
http://img203.imageshack.us/img203/1557/backgroundvs.jpg[^]

Also the corners...

Is there an example or solution?

Thanks.

推荐答案

您必须继承Panel并覆盖OnPaint.


如果您搜索Google,您会为此找到一些不错的选择.

我用谷歌搜索了面板控件上的c#winforms圆角",这是热门之一:

http://www.developer.com/net/vb/article.php/3790451/Creating-a-Rounded-Panel-Control.htm [
If you search google, you''ll find several good hits for that.

I googled for "c# winforms round corners on Panel control", and this is one of the hits:

http://www.developer.com/net/vb/article.php/3790451/Creating-a-Rounded-Panel-Control.htm[^]


这篇关于面板边框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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