ToolStripStatusLabel.Spring Property
Gets or sets a value indicating whether the ToolStripStatusLabel automatically fills the available space on the StatusStrip as the form is resized.
Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Property Value
Type: System.Booleantrue if the ToolStripStatusLabel automatically fills the available space on the StatusStrip as the form is resized; otherwise, false. The default is false.
Set the Spring property to true to enable the ToolStripStatusLabel to smoothly resize along with its container.
The following code example demonstrates the syntax for various ToolStripStatusLabel common properties, including the Spring property.
// toolStripStatusLabel1.BorderSides = ((System.Windows.Forms.ToolStripStatusLabelBorderSides)((((System.Windows.Forms.ToolStripStatusLabelBorderSides.Left | System.Windows.Forms.ToolStripStatusLabelBorderSides.Top) | System.Windows.Forms.ToolStripStatusLabelBorderSides.Right) | System.Windows.Forms.ToolStripStatusLabelBorderSides.Bottom))); toolStripStatusLabel1.BorderStyle = System.Windows.Forms.Border3DStyle.Raised; toolStripStatusLabel1.IsLink = true; toolStripStatusLabel1.Name = "toolStripStatusLabel1"; toolStripStatusLabel1.Size = new System.Drawing.Size(246, 20); toolStripStatusLabel1.Spring = true; toolStripStatusLabel1.Text = "toolStripStatusLabel1"; toolStripStatusLabel1.Alignment = ToolStripItemAlignment.Left;
Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.