|
-
September 21st, 1999, 04:47 AM
#1
UpDown Control
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?
-
September 22nd, 1999, 01:20 AM
#2
Re: UpDown Control
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|