2012年2月8日
摘要: 系统自带的按钮无法去除边框。网上找了个解决方案:重写按钮的OnPaint事件 class newbtn : System.Windows.Forms.Button //继承之系统按钮控件 { protected override void OnPaint(PaintEventArgs e) {//重写 base.OnPaint(e); System.Drawing.Pen pen = new Pen(this.BackColor, 3); e.Graphics.DrawRectangl... 阅读全文
posted @ 2012-02-08 20:06 smallerpig 阅读(1619) 评论(1) 推荐(0)