摘要: 现在,C#创建不规则窗体不是一件难事,下面总结一下: 一、自定义窗体,一般为规则的图形,如圆、椭圆等。 做法:重写Form1_Paint事件(Form1是窗体的名字),最简单的一种情况如下: System.Drawing.Drawing2D.GraphicsPath shape = new System.Drawing.Drawing2D.GraphicsPath(); shape.AddEllipse(0,0,this.Height, this.Width); this.Region = new Region(shape); 即重绘窗体的规则。 二、利用背景图片实现 1. 设 阅读全文
posted @ 2010-08-29 12:28 Alexis 阅读(16086) 评论(16) 推荐(8) 编辑