sf129
asked on
How do I write code for the updown control??
i need to write code using the updown control to increment or decrement a number. The user enters a number in a textbox, then after the number is entered they have the option to increment the number or decrement it. I got it to work for incrementing the number, the only problem is that when the down arrow is pressed it still increments the number. Example: Private Sub UpDown2_Change()
txtcentigrade.Text = txtcentigrade.Text + UpDown2.Increment
End Sub
I am hopeless, can anyone help me??
txtcentigrade.Text = txtcentigrade.Text + UpDown2.Increment
End Sub
I am hopeless, can anyone help me??
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
1. Change - occurs any time the Value property of the control is changed.
2. DownClick - occurs when you click the down arrow of the control
3. UpClick - occurs when you click the up arrow of the control.
Hope this helps you.