Click here to Skip to main content
15,888,100 members
Please Sign up or sign in to vote.
3.00/5 (2 votes)
See more:
So I'm asking a question I need answered with small words, (think of me as a retarded hillbilly redneck child noob). I want to make a simple on-screen keyboard with a few buttons, what I need help with is how to make it behave like an on-screen keyboard, (on top and keeps focus on the other program when push buttons), I also need help with the other key feature how to emulate a keypress in C#, I googled and it says 'use SendKeys', I tried that but intellisense don't recognize it AND It get red-wiggly line underneath, as I said I'm a total noob.

So to recap:
1, how to focus on other windows
2, emulate a keypress

thanks!

-frank
Posted

 
Share this answer
 
Comments
Dalek Dave 18-Mar-11 21:26pm    
Good old code project!
Sergey Alexandrovich Kryukov 18-Mar-11 21:27pm    
Reasonable advice, my 5. For more concrete stuff, see my Answer.
--SA
I answered a similar Question several time. You can find all what's involved here:

Application focus getting and losing[^]
Programming on BACKSPACE button[^]

The references above are for System.Windows.Forms.
For WPF, see this:
A Touch Screen Keyboard Control in WPF[^]

—SA
 
Share this answer
 
v2

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