当前位置:编程学习 > C#/ASP.NET >>

求助C#圆形Buttion设计

怎样自定义控件,代码是什么(以圆形Buttion为例),最好有每句的解释。 圆形Buttion --------------------编程问答-------------------- 这里有下载。http://www.codeproject.com/Articles/42968/Pulse-Button --------------------编程问答-------------------- 楼上的连接,我下载下来运行了一下,是我见到的最好的资源了,顶一下楼上的 --------------------编程问答--------------------
private void roundButton_Paint(object sender, System.Windows.Forms.PaintEventArgs e)
    {
        System.Drawing.Drawing2D.GraphicsPath buttonPath =  new System.Drawing.Drawing2D.GraphicsPath();
        System.Drawing.Rectangle newRectangle = roundButton.ClientRectangle;
        newRectangle.Inflate(-10, -10);
         e.Graphics.DrawEllipse(System.Drawing.Pens.Black, newRectangle);
        newRectangle.Inflate( 1,  1);
        buttonPath.AddEllipse(newRectangle);.
        roundButton.Region = new System.Drawing.Region(buttonPath);
    }
--------------------编程问答-------------------- http://download.csdn.net/detail/liyaarhui/3938750 --------------------编程问答-------------------- 四楼的不是真正啊按钮啊!
补充:.NET技术 ,  C#
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,