ScrollableControl.SetScrollState Method (Int32, Boolean)


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Sets the specified scroll state flag.

Namespace:   System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

protected void SetScrollState(
	int bit,
	bool value


Type: System.Int32

The scroll state flag to set.

Type: System.Boolean

The value to set the flag.

When the bit parameter is set to one of the fields of the ScrollableControl class, the SetScrollState method updates the state of the control to the value parameter. For more information about the valid parameters and their values, see the GetScrollState method.

.NET Framework
Available since 1.1
Return to top