using System.Drawing; namespace System.Windows.Forms { public class ToolStripStatusLabel : ToolStripLabel { private bool spring; public bool Spring { get => spring; set { spring = value; if (value) AutoSize = false; } } public override void ApplyStyle(ToolStripProfessionalRenderer r) { label.Foreground = r.StatusBarForeground; } public ToolStripStatusLabel() : base() { } public ToolStripStatusLabel(Image image) : this() { Image = image; } } }