Click here to Skip to main content
15,885,032 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi there
Do you know how can we get forms have to focus one on itself and one on another,I mean something like osk(on screen keyboard) when you press a button on it the focus is not only on the osk screen and it's always on top
thanks
Posted

well, no, two items cannot have the focus.

But, what you can do is tell the osk what should have the focus when it is clicked. To do this, you can get the handle of the window that you want to send the keyboard input to, and then use a PostMessage of SendMessage

check out the forum here: Virtual Keyboard- C#[^]

There are a couple of solutions. There is also a zip file called BensOSK towards the bottom thirds that is interesting.
 
Share this answer
 
Thanks but when you want to type in a area that is not a text editing program and have lot's of focus elements it cant type
easily try to type into address bar in ie you can find out what I mean
thanks so much
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900