SpinDown, SpinUp Events, Delay Property Example
The following example demonstrates the time interval between successive Change, SpinUp, and SpinDown events that occur when a user holds down the mouse button to change the value of a SpinButton or ScrollBar.
In this example, the user chooses a delay setting, then clicks and holds down either side of a SpinButton. The SpinUp and SpinDown events are recorded in a ListBox as they are initiated.
To use this example, copy this sample code to the Declarations portion of a form. Make sure that the form contains:
- A SpinButton named SpinButton1.
- Two OptionButton controls named OptionButton1 and OptionButton2.
- A ListBox named ListBox1.
|