public HeaderLabel() { SetStyle(ControlStyles.AllPaintingInWmPaint, true); SetStyle(ControlStyles.Opaque, true); SetStyle(ControlStyles.ResizeRedraw, true); SetStyle(ControlStyles.UserPaint, true); SetStyle(ControlStyles.Selectable, false); UI.InitScaling(null); TabStop = false; DoubleBuffered = true; ResizeRedraw = true; SuspendLayout(); this.etchedLine = new EtchedLine(); Controls.Add(this.etchedLine); Size = new Size(144, 14); ResumeLayout(false); }
public HeaderLabel() { SetStyle(ControlStyles.AllPaintingInWmPaint, true); SetStyle(ControlStyles.Opaque, true); SetStyle(ControlStyles.ResizeRedraw, true); SetStyle(ControlStyles.UserPaint, true); SetStyle(ControlStyles.Selectable, false); UI.InitScaling(null); TabStop = false; ForeColor = SystemColors.Highlight; DoubleBuffered = true; ResizeRedraw = true; SuspendLayout(); this.etchedLine = new EtchedLine(); Controls.Add(this.etchedLine); Size = new Size(144, 14); ResumeLayout(false); }