Change Event

Object List Next Object

Defined By:
ScrollBar

Description:

Indicates that the position of the thumb on the scroll bar has changed and initiates some action based on the change.

Usage:

Sub Change ()

Details:

A Scroll bar's change event occurs when the position of the thumb changes either by user action such as clicking the arrows or the bar area of the scroll bar or manually dragging the thumb, or through program code by setting the Value property.

A Change procedure can be useful for coordinating data display among controls. For example, you could use a Change procedure to display an image in one area and information and other data relating to the image in another area on the same form.


Note: A cascading or circular event can sometimes occur when using the Change event. This is especially true in situations where the control's Change event affects the control's contents. Avoid this situation if possible. Also, avoid making Change procedures of two or more controls that directly affect each other.

See Also:

KeyDown, KeyUp events; KeyPress event; LostFocus event