Hello. I'm creating a form that will block the functionality of keyboard and mouse but apparently it is not working. Can someone help me if there is something i missed and need to be added?
Here is my code:
Here is my code:
Public Class Form1 Declare Function BlockInput Lib "User32" (ByVal fBlockIt As Boolean) As Boolean Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click BlockInput(True) End Sub End Class