mmforrester
September 21st, 1999, 04:47 AM
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?
|
Click to See Complete Forum and Search --> : UpDown Control mmforrester September 21st, 1999, 04:47 AM 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? Ravi Kiran September 22nd, 1999, 01:20 AM 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 codeguru.com
Copyright Internet.com Inc., All Rights Reserved. |