BPak Active Member Licensed User Longtime User Nov 21, 2013 #1 Typing a number into the TextField and pressing Enter on the keyboard works as expected and selects the Text in the TextField after analysing if the number is correct. Typing a number in the EditField and clicking on the Button with the mouse works out if your number is correct but does not highlight the text in the TextField. I added a line of code in btnTry_Action to make this work - Code: Copy txtGuess.RequestFocus ' sets focus to the EditField txtGuess.SelectAll
Typing a number into the TextField and pressing Enter on the keyboard works as expected and selects the Text in the TextField after analysing if the number is correct. Typing a number in the EditField and clicking on the Button with the mouse works out if your number is correct but does not highlight the text in the TextField. I added a line of code in btnTry_Action to make this work - Code: Copy txtGuess.RequestFocus ' sets focus to the EditField txtGuess.SelectAll
Erel B4X founder Staff member Licensed User Longtime User Nov 21, 2013 #2 Your change is indeed required. Upvote 0