Is there a way of using the UpDown control to change the value displayed in a text field by a non-integer value (say 0.1). If not, is there another control I could use to do this?
Printable View
Is there a way of using the UpDown control to change the value displayed in a text field by a non-integer value (say 0.1). If not, is there another control I could use to do this?
Dont hook the text box as a Buddy control. Instead code the DownClick/Upclick events of Updown control to change the value by what ever amount you want
Const fIncrAmnt = 0.1
private Sub UpDown1_DownClick()
text1.text = str(val(text1.text) - fIncrAmnt)
End Sub
private Sub UpDown1_UpClick()
text1.text = str(val(text1.text) + fIncrAmnt)
End Sub
RK