Scrollbars can be useful whenever the display rectangle is larger than the window's client area. This is an alternative to making the displayed image fit the window. The following instructions describe how to implement scrollbars, turning them on when they are required and turning them off when they are not.
To be as simple and specific as possible, these instructions describe how to modify the Color example program. If you want to test the sample code, you should make a copy of the Color program, and modify the copy. The display rectangles used in this program are described in Fitting an Image to a Window.
The following topics provide detailed descriptions of these steps, with code that you can copy from the online help and paste into the sample program.
Medical Web Viewer .NET