How to kill Focus on Form ?

I

Ivan Vasic

I'm trying to write program in C# that when I click on button(s) I
simulate keyboard button press (using SendKeys ), but the problem is
how to keep focus OUT of my form and keep it on the application
currently active.

Typicall example you have - OnScreen Keyboard in Windows XP.


PLEEEEEASE someone help me !!!
 
V

Vanessa

You have to use keyPressed - look it up in your help file, there is an
example.
You use it in association with a control on the form currently active.
There you write this.textBox1.KeyPress += etc
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top