0

How to Get handle of a window and disable the Keyboard inputs using c# ?

Anuya
  • 7,706
  • 47
  • 132
  • 220
  • @SLaks Probably the same thing as this, two hours ago: http://stackoverflow.com/questions/2878989/using-window-handle-to-disable-mouse-clicks-and-keyboard-inputs-using-c – Jay May 21 '10 at 03:35

1 Answers1

1

To prevent keyboard input in a window in another process, you need to make a keyboard hook.
You can then check GetForegroundWindow() and suppress the input.

SLaks
  • 837,282
  • 173
  • 1,862
  • 1,933