创建一个非矩形的Windows窗体应用程序 [英] Create a non-rectangular shaped windows form application

查看:75
本文介绍了创建一个非矩形的Windows窗体应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我想创建一个Windows窗体,该窗体不应具有随意的矩形.
相反,它应该具有形状 [

Hi all,

I want to create a windows form, which should not have casual rectangular in shape.
Instead it should have the Shape[^]
I tried to create ellipsis shape for my window and succeeded by using the below code snippet

GraphicsPath path = new GraphicsPath();
path.AddEllipse(0,0,this.Width,this.Height);
Region region = new Region(path);  
this.Region = region; 


有什么方法可以动态创建或在设计时创建吗?
设计时间将对您有所帮助,''Coz我想将图像放置在圆圈区域.

在此先感谢您.


Is there any way to create either dynamically or at design time?
Design time it will be more helpful, ''Coz I want to place a image in the circle area.

Thanks in advance.

推荐答案

,您可以看到示例.


这篇关于创建一个非矩形的Windows窗体应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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