raj patel
January 18th, 2000, 08:44 AM
Hi
I am using a "UpDown" Control to increase/decrease the value of a text field, all seems to work correctly except a slight snag.
I have declared a private variable for the form to hold the direction I wish to go (ie either "UP" or "DOWN").
When the user presses the up arrow of the "UpDown" Control the UpClick() event sets the direction to "UP" and when he/she pressses the down arrow of the "UpDown" Control the DownClick() event sets the direction to "Down". I have written some code in the Change event of the "UpDown" Control that will either incerment or decrement the textbox value depending on my direction of travel but when I change directions I need to press the control twice before it goes in the right direction.
In the help it says the change event is triggered before the UpClick() or DownClick() events - does anybody have ideas on how I can resolve this.
Many thanks in advance.
Raj
I am using a "UpDown" Control to increase/decrease the value of a text field, all seems to work correctly except a slight snag.
I have declared a private variable for the form to hold the direction I wish to go (ie either "UP" or "DOWN").
When the user presses the up arrow of the "UpDown" Control the UpClick() event sets the direction to "UP" and when he/she pressses the down arrow of the "UpDown" Control the DownClick() event sets the direction to "Down". I have written some code in the Change event of the "UpDown" Control that will either incerment or decrement the textbox value depending on my direction of travel but when I change directions I need to press the control twice before it goes in the right direction.
In the help it says the change event is triggered before the UpClick() or DownClick() events - does anybody have ideas on how I can resolve this.
Many thanks in advance.
Raj