Hello,
I want to create a program for key pressing, but it doesn't work.
The program should press "F1" key every second or as I set it.

Private Sub CheckBox1_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CheckBox1.CheckedChanged
Do
If CheckBox1.Checked = False Then
Exit Do
End If
System.Windows.Forms.SendKeys.Send("{F1}")
Loop
End Sub

Any Ideas? Please