Another stupid Keypress question(RESOLVED)
Well, yes, I'm gonna ask a question about the Keypress event. I know it's been beat to death, but I couldnt find my answer with a search so here goes:
I want the right arrow key to activate the Button click event for a button on my form.
I have tried many different things with the Keypress and Keydown events, but I cant figure it out. I am currently using this code in the KeyDown event from a thread I saw. It doesent work though.
VB Code:
If (e.KeyCode = Keys.Right) Then
Call btnRight_Click(sender, e)
Else
e.Handled = False
End If
Can anyvody help?