StatusStrip.SizingGrip Property

Definition

Gets or sets a value indicating whether a sizing handle (grip) is displayed in the lower-right corner of the control.

C#
public bool SizingGrip { get; set; }

Property Value

true if a grip is displayed; otherwise, false. The default is true.

Examples

The following code example demonstrates a StatusStrip with various common properties set, including the SizingGrip property.

C#
statusStrip1.Dock = System.Windows.Forms.DockStyle.Top;
statusStrip1.GripStyle = System.Windows.Forms.ToolStripGripStyle.Visible;
statusStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
toolStripStatusLabel1});
statusStrip1.LayoutStyle = System.Windows.Forms.ToolStripLayoutStyle.HorizontalStackWithOverflow;
statusStrip1.Location = new System.Drawing.Point(0, 0);
statusStrip1.Name = "statusStrip1";
statusStrip1.ShowItemToolTips = true;
statusStrip1.Size = new System.Drawing.Size(292, 22);
statusStrip1.SizingGrip = false;
statusStrip1.Stretch = false;
statusStrip1.TabIndex = 0;
statusStrip1.Text = "statusStrip1";

Remarks

You can use the SizingGrip property to display a grip to provide an indication to the user of when a StatusStrip is resizable.

Even with the SizingGrip property set to true and the GripStyle property set to Visible, the sizing grip will not be displayed unless you also set the LayoutStyle property to one of the overflow values. If the LayoutStyle property is set to Flow or Table, the sizing grip will not be displayed.

Applies to

Product Versions
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9