How to Disable a Keyboard With Visual Basic

104 21
    • 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...
Subscribe to our newsletter
Sign up here to get the latest news, updates and special offers delivered directly to your inbox.
You can unsubscribe at any time

Leave A Reply

Your email address will not be published.