System.Windows.Forms.ToolStripProgressBar.Maximum Property

Gets or sets the upper bound of the range that is defined for this System.Windows.Forms.ToolStripProgressBar.

Syntax

[System.ComponentModel.RefreshProperties(System.ComponentModel.RefreshProperties.Repaint)]
[System.ComponentModel.DefaultValue(100)]
public int Maximum { set; get; }

Value

Documentation for this section has not yet been entered.

Remarks

This property specifies the upper limit of the ToolStripProgressBar.Value property. When the value of the ToolStripProgressBar.Maximum property is changed, the System.Windows.Forms.ToolStripProgressBar control is redrawn to reflect the new range of the control. When the value of the ToolStripProgressBar.Value property is equal to the value of the ToolStripProgressBar.Maximum property, the progress bar is completely filled.

You can use this property to specify a value that the ToolStripProgressBar.Value property must be set to (by setting the ToolStripProgressBar.Value property or using the ToolStripProgressBar.Increment(int) or ToolStripProgressBar.PerformStep methods) to indicate that an operation is complete. For example, you can set the value of the ToolStripProgressBar.Maximum property to the total number of files in a file copy operation. Each time a file is copied, the ToolStripProgressBar.Value property can be increased by one until the total number of files is copied. At that point, the progress bar would be completely filled.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0