C
Christopher Thompson
I'm building a virtual keyboard for a touch screen
application. When I hit a key on the keyboard, I lose
focus on my text box (or whatever I'm in at the time). If
I have a range of text selected, when I restore focus, I
lose the selected range. What I would like to do is avoid
losing the focus from the text box when I press a key on
my keyboard (which is implemented as a User Control). Is
there some way to do this? Or another workaround to
maintain the selected text range in the text box?
PS> I'm using C#.
application. When I hit a key on the keyboard, I lose
focus on my text box (or whatever I'm in at the time). If
I have a range of text selected, when I restore focus, I
lose the selected range. What I would like to do is avoid
losing the focus from the text box when I press a key on
my keyboard (which is implemented as a User Control). Is
there some way to do this? Or another workaround to
maintain the selected text range in the text box?
PS> I'm using C#.