ScrollBar::Value Property
.NET Framework (current version)
Gets or sets a numeric value that represents the current position of the scroll box on the scroll bar control.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
| Exception | Condition |
|---|---|
| ArgumentOutOfRangeException |
The following example scrolls an image in a picture box. It uses the Value of the scrollbar to redraw a new part of the image whenever the user scrolls. This code example is part of a larger example provided for the ScrollBar class overview.
Note |
|---|
For instructions about how to run this example in Visual Studio, see How to: Compile and Run a Complete Windows Forms Code Example Using Visual Studio. |
.NET Framework
Available since 1.1
Available since 1.1
Show:
