C#怎么把Buttom控件的外观改为圆形

2024-11-19 10:38:00
推荐回答(1个)
回答(1):

使用Region来做:
System.Drawing.Drawing2D.GraphicsPath path = new System.Drawing.Drawing2D.GraphicsPath();
path.AddEllipse(this.button1.ClientRectangle);
this.button1.Region = new Region(path);