PRB: UpDown Control May Not Increment As Expected
Article ID: 189808
Article Last Modified on 5/13/2003
APPLIES TO
- Microsoft Visual Basic 5.0 Learning Edition
- Microsoft Visual Basic 6.0 Learning Edition
- Microsoft Visual Basic 5.0 Professional Edition
- Microsoft Visual Basic 6.0 Professional Edition
- Microsoft Visual Basic 5.0 Enterprise Edition
- Microsoft Visual Basic 6.0 Enterprise Edition
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.
Additional query words: kbDSupport kbDSD kbVBp kbVBp500 kbCtrl kbVBp600
Keywords: kbprb KB189808