好象是在button的paint事件里,但是如何写代码?
多谢。
------解决方案--------------------
参见代码
http://www.codeproject.com/Articles/5082/Round-Button-in-C
http://www.authorcode.com/how-to-make-round-button-in-c/
------解决方案--------------------
设置region
- C# code
GraphicsPath path = new GraphicsPath(); path.AddEllipse(0,0,20,20); button1.Region = new Region(path);