Quote:
Originally Posted by JStrider
yah... im just using VB.NET cuz thats what im being taught in class...
and the code works... for any key being pushed on the keyboard... how can i make it so the timer only runs when only the "w" key is depressed?
|
Code:
'On your form key down event, enable the timer.
Private Sub Form1_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles MyBase.KeyDown
If e.KeyCode = Keys.W Then
m_Timer.Enabled = True
End If
End Sub