How to kill Focus on Form ?

  • Thread starter Thread starter Ivan Vasic
  • Start date Start date
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 !!!
 
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
 
Back
Top