System.Windows.Forms.ScrollableControl.AdjustFormScrollbars Method

Adjusts the scroll bars on the container based on the current control positions and the control currently selected.

Syntax

[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Advanced)]
protected virtual void AdjustFormScrollbars (bool displayScrollbars)

Parameters

displayScrollbars
true to show the scroll bars; otherwise, false.

Remarks

When required, the ScrollableControl.AdjustFormScrollbars(bool) method lays out the client area, including resizing the display area as required to accommodate the scroll bars.

Requirements

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