0

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

Anuya
  • 8,082
  • 49
  • 137
  • 222
  • @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
  • 868,454
  • 176
  • 1,908
  • 1,964