0

I need to disable all keys from windows form .is there any way to disable keyboard on windows form in C#

vikas
  • 7
  • 4
  • it might help: http://stackoverflow.com/questions/586547/how-can-i-block-keyboard-and-mouse-input-in-c – Dyrandz Famador Feb 25 '15 at 05:00
  • I want to diasable inputs only on a form not globaly – vikas Feb 25 '15 at 05:03
  • This seems like it might not be the right solution to your problem. Would it not be better to simply disable anything that might be affected *by* said keys? – Matthew Haugen Feb 25 '15 at 05:46
  • @matthew Haugen I need to disable only keys.In my scenario mouse needs to be work properly only needs to disable keyboard on a particular form – vikas Feb 25 '15 at 05:55
  • What functionalities are you hoping to hinder? There's probably a generic solution, but I'm looking to hone in your question a bit. I take it you don't want tab stops working, but is there anything else? – Matthew Haugen Feb 25 '15 at 05:58
  • @matthew Haugen Can you Provide me a sample c# code for disable keyboard in windows forms – vikas Feb 25 '15 at 06:08

0 Answers0