Results 1 to 10 of 10

Thread: Another stupid Keypress question(RESOLVED)

Threaded View

  1. #1

    Thread Starter
    Addicted Member The Phoenix's Avatar
    Join Date
    Aug 2003
    Location
    With my wife
    Posts
    142

    Talking 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:
    1. If (e.KeyCode = Keys.Right) Then
    2.             Call btnRight_Click(sender, e)
    3.         Else
    4.             e.Handled = False
    5.         End If
    Can anyvody help?
    Last edited by The Phoenix; Sep 1st, 2003 at 02:25 AM.
    Take my love
    Take my land
    Take me where I cannot stand
    I don't care, I'm still free
    You can't take the sky from me...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width