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
Not applicable.



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 Server 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 Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0, 1.1, 1.0