Results 1 to 4 of 4

Thread: KeyDown/KeyUp HELP!!!

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Oct 1999
    Location
    IL
    Posts
    16

    Post

    I can't seem to get the Key Down to work. Whenever a specific key is pressed it does not do anything. And example is when I put this

    If KeyCode = 102 Then
    Picture1.left = Picture1.left + 10
    Else
    End If

    I place this in the Form_Load section

  2. #2
    Hyperactive Member
    Join Date
    Jul 1999
    Location
    NY, USA
    Posts
    270

    Post

    Try setting the form's KeyPreview property to true.

    ------------------
    Tom Young, 14 Year Old
    [email protected]
    ICQ: 15743470
    AIM: TomY10
    PERL, JavaScript and VB Programmer

  3. #3
    Fanatic Member
    Join Date
    Oct 1999
    Location
    MA, USA
    Posts
    523

    Post

    Do what Compwiz said and also place this code in Form's KeyDown event.
    It seems to work for me.

    QWERTY

  4. #4
    Hyperactive Member
    Join Date
    Jul 1999
    Location
    NY, USA
    Posts
    270

    Post

    Oh yeah... forgot that part too. Thanx QWERTY.

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