Connecting Tech Pros Worldwide Forums | Help | Site Map

controls, focus...

Newbie
 
Join Date: May 2007
Posts: 2
#1: Mar 26 '08
Hi all,

I am working on application where the user will trough the touch screen and on screen keyboard input some values into text boxes.

he will press the on the text box which he will want to edit and then on the keypad(buttons 1,2,3...0, clr)

now the question is how can I achieve that when the user will press on the keypad, the text box will not lose focus, so that I will know into which text box to input the numbers.

thanks
best regards
Greg

Newbie
 
Join Date: Mar 2008
Posts: 1
#2: Mar 27 '08

re: controls, focus...


Take a copy of the current cotrol that has focus by using the GotFocus event. When it loses focus from an input control, use the input controls clicked event to set focus back to the control you have taken a copy of.
Reply