System.Windows.Forms.ScrollableControl.SetScrollState Method

Sets the specified scroll state flag.

Syntax

protected void SetScrollState (int bit, bool value)

Parameters

bit
The scroll state flag to set.
value
The value to set the flag.

Remarks

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

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0