I have one text box where I enter a number. I can either click the calculate button or use the accept property (enter) to perform the calculation and display the answer in a label.
I use the SelectAll() method to select the number in the text box when it has the focus.
When I use the calculate button is works correctly but when I just hit enter the text box has the focus but the number is not selected.
What could I be doing wrong?
I use the SelectAll() method to select the number in the text box when it has the focus.
When I use the calculate button is works correctly but when I just hit enter the text box has the focus but the number is not selected.
What could I be doing wrong?
Comment