Increment Method
Collapse the table of content
Expand the table of content

ToolStripProgressBar.Increment Method

Advances the current position of the progress bar by the specified amount.

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in system.windows.forms.dll)

public void Increment (
	int value
)
public void Increment (
	int value
)
public function Increment (
	value : int
)
Not applicable.

Parameters

value

The amount by which to increment the progress bar's current position.

The Increment method enables you to increment the value of the progress bar by a specific amount. This method of incrementing the progress bar is similar to using the Step property with the PerformStep method. The Value property specifies the current position of the ToolStripProgressBar. If, after calling the Increment method, the Value property is greater than the value of the Maximum property, the Value property remains at the value of the Maximum property. If, after calling the Increment method with a negative value specified in the value parameter, the Value property is less than the value of the Minimum property, the Value property remains at the value of the Minimum property.

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0

Community Additions

ADD
Show:
© 2016 Microsoft