Control Reference > VSViewPort Control |
The VSViewPort is a scrollable container control. With VSViewPort, you no longer have to write tedious code to synchronize scroll bars and picture boxes. You decide how big your window should be, then let the VSViewPort scroll your controls for you. You can use the VSViewPort to implement fill-out forms that are larger than the visible window, and print them later using the VSPrinter control.
The new VSViewPort control has a FocusTrack property that automatically scrolls the viewport so that the control with the input focus is visible to the user.
Note: Before you can use a VSViewPort control in your application, you must add the VSVPort8.ocx file to your project. Please refer to the VB documentation for details on adding controls to your projects. |
To distribute applications you create with the VSViewPort control, you must install and register it on the user's computer. The Setup Wizard provided with Visual Basic provides tools to help you do that. Please refer to the Visual Basic manual for details.
The VSViewPort control provides the following properties, events and methods:
Gets or sets the description of the control used by accessibility client applications. |
|
Gets or sets the name of the control used by accessibility client applications. |
|
Gets or sets the role of the control used by accessibility client applications. |
|
Gets or sets the value of the control used by accessibility client applications. |
|
Appearance |
See the Visual Basic documentation. |
Returns or sets whether contents are scrolled automatically by the control. |
|
BackColor |
See the Visual Basic documentation. |
BorderStyle |
See the Visual Basic documentation. |
Enabled |
See the Visual Basic documentation. |
Returns or sets the left margin for tracking the child with focus. |
|
Returns or sets the right margin for tracking the child with focus. |
|
Returns or sets whether the control should scroll to keep visible the child with focus. |
|
hWnd |
See the Visual Basic documentation. |
Returns or sets the amount of change to the VirtualLeft property when the user clicks the scroll bar area. |
|
Returns or sets the amount of change to the VirtualTop property when the user clicks the scroll bar area. |
|
MouseIcon |
See the Visual Basic documentation. |
MousePointer |
See the Visual Basic documentation. |
Returns or sets whether contents may be scrolled by dragging the control's client area. |
|
Picture |
Returns or sets a picture to be used as a background for the control. |
Returns or sets whether the scrollbar thumbs should be proportional to the size of the visible area. |
|
Returns or sets the amount of change to the VirtualLeft property when the user clicks the scroll arrow. |
|
Returns or sets the amount of change to the VirtualTop property when the user clicks the scroll arrow. |
|
Returns or sets whether scrolling occurs as the user drags the scroll thumb. |
|
Returns the version of the control currently loaded. |
|
Returns or sets the height of the scrollable area, in twips. |
|
Returns or sets the left coordinate of the visible area, in twips. |
|
Returns or sets the top coordinate of the visible area, in twips. |
|
Returns or sets the width of the scrollable area, in twips. |
*Refresh |
See the Visual Basic documentation. |
Sets the VirtualWidth and VirtualHeight properties to fit the contained controls. |
Click |
See the Visual Basic documentation. |
DblClick |
See the Visual Basic documentation. |
MouseDown |
See the Visual Basic documentation. |
MouseMove |
See the Visual Basic documentation. |
MouseUp |
See the Visual Basic documentation. |
Fired after the control scrolls its contents. |