public MetroLabel() { SetStyle(ControlStyles.SupportsTransparentBackColor | ControlStyles.OptimizedDoubleBuffer | ControlStyles.ResizeRedraw | ControlStyles.UserPaint, true); baseTextBox = new DoubleBufferedTextBox(); baseTextBox.Visible = false; Controls.Add(baseTextBox); }
/// <summary> /// Initializes a new instance of the <see cref="ModernLabel"/> class. /// </summary> public ModernLabel() { this.SetStyle(ControlStyles.SupportsTransparentBackColor | ControlStyles.OptimizedDoubleBuffer | ControlStyles.ResizeRedraw | ControlStyles.UserPaint, true); this._baseTextBox = new DoubleBufferedTextBox(); this._baseTextBox.Visible = false; this.Controls.Add(this._baseTextBox); this.FontSize = ModernFontSize.Medium; this.FontWeight = ModernFontWeight.Light; }
public MetroLabel() { SetStyle(ControlStyles.SupportsTransparentBackColor | ControlStyles.OptimizedDoubleBuffer | ControlStyles.ResizeRedraw | ControlStyles.UserPaint, true); baseTextBox = new DoubleBufferedTextBox(); baseTextBox.Visible = false; Controls.Add(baseTextBox); }
public MetroLabel() { SetStyle(ControlStyles.AllPaintingInWmPaint | ControlStyles.OptimizedDoubleBuffer | ControlStyles.ResizeRedraw | ControlStyles.UserPaint, true); baseTextBox = new DoubleBufferedTextBox(); baseTextBox.Visible = false; Controls.Add(baseTextBox); }