PRB: UpDown Control May Not Increment As Expected (189808)
The information in this article applies to:
- Microsoft Visual Basic Learning Edition for Windows 5.0
- Microsoft Visual Basic Learning Edition for Windows 6.0
- Microsoft Visual Basic Professional Edition for Windows 5.0
- Microsoft Visual Basic Professional Edition for Windows 6.0
- Microsoft Visual Basic Enterprise Edition for Windows 5.0
- Microsoft Visual Basic Enterprise Edition for Windows 6.0
This article was previously published under Q189808 SYMPTOMS
When you click the up or down button on an UpDown control, you notice that
the value changes by more than the amount specified for the Increment
property. For example, if the Increment property is 2, the value of the
UpDown control may change by 3 instead of 2.
CAUSE
When you click the up or down button to change the value of an UpDown
control, the control will first "normalize" the current value before it is
changed by the amount specified in the Increment property. By normalizing
the value, the UpDown control may change by more than the amount specified
in the Increment property so that the new value is evenly divisible by the
Increment.
STATUS
This behavior is by design.
Modification Type: | Major | Last Reviewed: | 5/13/2003 |
---|
Keywords: | kbprb KB189808 |
---|
|