[C#] Enable / Disabled Keyboard

G

Guest

Hi,

Is it possible to desactivate all key on the keyboard and after activate
only 2 keys on the keyboard ?

Thanks

Best Regards
 
D

Daniel Moth

What is your end user goal?

You can listen for the key pressed and decide in code whether to accept or
reject the input. There are examples in the archives of listening for key
input either via the KeyXX event handlers or through message filters.

Cheers
Daniel
 
P

Paul G. Tobey [eMVP]

But, in general, no, there's no way to do that unless there's some type of
custom capability built into the keyboard driver.

Paul T.
 

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