首页 >> 文摘 >> C#

C#绘制圆角窗体

采集日期:2008-5-3作者:dj1232090(注:本数据由系统自动采集,内容与BHCODE无关)
public   void   SetWindowRegion()       {       System.Drawing.Drawing2D.GraphicsPath   FormPath;       FormPath   =   new   System.Drawing.Drawing2D.GraphicsPath();       Rectangle   rect=new   Rectangle(0,22,this.Width,this.Height-22);//this.Left-10,this.Top-10,this.Width-10,this.Height-10);                   FormPath   =   GetRoundedRectPath(rect,   30);     this.Region   =   new   Region(FormPath);       }     private   GraphicsPath   GetRoundedRectPath(Rectangle   rect,   int   radius)    
本周推荐
MORE
热点关注
MORE