ScrollableControl.SetScrollState Method (Int32, Boolean)

 

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
)

Parameters

bit
Type: System.Int32

The scroll state flag to set.

value
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
Show: