Hello,
I got my splash screen policy to work. I am not looking for a code that will disable keyboard and just have mouse enabled when the policy is on the screen.
My current code is:
Public Class Form1
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs)
Button1.Enabled = False
Button2.Enabled = False
End Sub
Private Sub CheckBox1_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CheckBox1.CheckedChanged
If CheckBox1.Checked Then
Button1.Enabled = True
Button2.Enabled = True
Else
Button1.Enabled = False
Button2.Enabled = False
End If
End Sub
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Me.Close()
Form2.Close()
End Sub
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
Me.Close()
Form2.Close()
Shell("Shutdown -f -r -t 120")