急,怎么样做不规则的控件? 不知道这个算不算http://www.microsoft.com/China/Community/program/originalarticles/TechDoc/csharpui.mspx 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 创建不规则窗体和控件http://tech.ccidnet.com/pub/article/c294_a25457_p1.html private void dianctr_Paint(object sender, System.Windows.Forms.PaintEventArgs e) { System.Drawing.Drawing2D.GraphicsPath buttonPath = new System.Drawing.Drawing2D.GraphicsPath(); System.Drawing.Rectangle newRectangle = this.ClientRectangle; newRectangle.Inflate(-10, -10); e.Graphics.DrawEllipse(System.Drawing.Pens.Black, newRectangle); newRectangle.Inflate( 1, 1); buttonPath.AddEllipse(newRectangle); this.Region = new System.Drawing.Region(buttonPath); } 请发给:[email protected] 谢谢 求教:字符串处理 IE中如何向object 的 param 的 value 中传值啊 iframe url 转向 我的DataGrid1_ItemDataBound问题 初学,请指教,switch ……case……, 很着急,谢谢 请想要c#程序的网友进来看看 关于双缓冲的一个问题 两个datagridview的选择 C# 复选窗添加到数据库 请教DropDownList问题 如何在一个C#应用程序中执行一个exe的程序并获得main函数的返回值? 如何防止form再次产生
http://tech.ccidnet.com/pub/article/c294_a25457_p1.html
{
System.Drawing.Drawing2D.GraphicsPath buttonPath =
new System.Drawing.Drawing2D.GraphicsPath();
System.Drawing.Rectangle newRectangle = this.ClientRectangle;
newRectangle.Inflate(-10, -10);
e.Graphics.DrawEllipse(System.Drawing.Pens.Black, newRectangle);
newRectangle.Inflate( 1, 1);
buttonPath.AddEllipse(newRectangle);
this.Region = new System.Drawing.Region(buttonPath);
}