VB.NET disable the keyboard and mouse

后端 未结 3 476
余生分开走
余生分开走 2021-01-21 20:53

I am looking to create a VB.NET application. when the application is opened it will disable the keyboard and mouse so if you hit any keys it does nothing and you can not move th

3条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-01-21 21:24

    Both the mouse and the keyboard will be quite dead when you P/Invoke BlockInput(). The three finger salute will be required. Visit pinvoke.net for the declaration.

提交回复
热议问题