key press

Discussion in 'Questions (Windows Mobile)' started by dennishea, Dec 24, 2007.

  1. dennishea

    dennishea Active Member Licensed User

    Is there a way to detect in one sub without a library for one of these key press's (cUpKey, cDownKey, cRightKey, cLeftKey).


    dennishea

    edit: figured it out

    Sub Form2_KeyPress(key)
    If key = cDownKey Then
    image1.Top = -400
    End If
    If key = cUpKey Then
    image1.Top = 12
    End If
    If key = cLeftKey Then
    image1.Left = - 400
    End If
    If key = cRightKey Then
    image1.Left = 12
    End If
    End Sub

    going to change to select though.
     
    Last edited: Dec 24, 2007
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice