This documentation is archived and is not being maintained.

ScrollableControl.AdjustFormScrollbars Method

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

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

protected virtual void AdjustFormScrollbars (
	bool displayScrollbars
protected void AdjustFormScrollbars (
	boolean displayScrollbars
protected function AdjustFormScrollbars (
	displayScrollbars : boolean



true to show the scroll bars; otherwise, false.

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

Windows 98, Windows 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 .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0, 1.1, 1.0