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).


    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