Is there any way to keep the keydown event from having a repeat delay when the key is held
I know you can go into Control Panel and adjust the keyboard settings, but is there a way to get around that in VB
In case it is useful, my code is:
Sub Form1_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles Me.KeyDown Select Case e.KeyCode Case Keys.LeftThe_moving_object.Left -= 20
Case Keys.RightThe_moving_object.Left += 20
Case Keys.UpThe_moving_object.Top -= 20
Case Keys.DownThe_moving_object.Top += 20
End Select End Sub
repeat delay in Keydown event
Martin Crimes
Well there's a simple way...
.
.
.
The_moving_object.Top -= 20
Case Keys.Down
The_moving_object.Top += 20
End Select
system.threading.threads.sleep( n number of milliseconds)
End SubDSRC