如何制作圆角矩形或圆形或三角形 [英] How to make form rounded rectangle or round or triangle
本文介绍了如何制作圆角矩形或圆形或三角形的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在C#中开发一个应用程序,并且要求圆角矩形中的主窗口的形式,或者有时需要三角形类型或圆形。
所以,我该如何在C#2008中实现这种功能?
I am developing an application in C# and there is a requirement of the form of the main window in rounded rectangle or some times triangle type or round shape. so, how can I achieve this kind of features in C# 2008
推荐答案
查看表单的Region属性。您可以创建一个新的区域,使用各种添加...方法设置其形状,然后将该区域分配给您的表单的区域属性。
Look at the Region property of your form. You can create a new Region, set its shape using it's various Add... methods and then assign the region to your form's region property.
这篇关于如何制作圆角矩形或圆形或三角形的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文