How to Disable a Keyboard With Visual Basic
- 1). Load Visual Basic and open your project. Right-click the Visual Basic form and select "Code View." This opens your code file for the project.
- 2). Double-click the "Form_Load" to view the code for the event that triggers when the form loads. You can also double-click an event for other triggers, such as the "Button Click" event that triggers when the user clicks a button control.
- 3). Enter the following code into your code file:
Shell "rundll32 keyboard,disable"
This code calls the main shell application in Windows and sends the command to disable the keyboard.
Source...