02 2012 档案
C#winform去除btn按钮的边框
摘要:系统自带的按钮无法去除边框。网上找了个解决方案:重写按钮的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...
阅读全文
浙公网安备 33010602011771号