using System; using System.Collections.Generic; using System.ComponentModel; using System.Drawing; using System.Data; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace Work.UserControls { public partial class ButtonEx : Button { public ButtonEx() { this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); this.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.ForeColor = System.Drawing.Color.White; //this.Font = new System.Drawing.Font("华文宋体", 8.999999F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); Cursor = Cursors.Hand; FlatAppearance.BorderSize = 0; this.UseVisualStyleBackColor = false; } /// /// 不显示控件获焦提示 /// protected override bool ShowFocusCues { get { return false; } } } }