How to catch hardkeys ?

Discussion in 'Questions (Windows Mobile)' started by conf, Jun 2, 2007.

  1. conf

    conf Member

    The Hardware lib can catch only 10 keys (Key1 -> Key5, Left, Right, Up, Down, Enter). I use PPC Phone with numpad and want to catch all keys. How can I do that ? Thank you so much :)
  2. Erel

    Erel Administrator Staff Member Licensed User

    These keys act like the soft keys, you can use the TextBox KeyPress event to catch them (depending on what you like to do).
  3. conf

    conf Member

    Thank Erel,

    I just want to write a program like Keycode (please view attach file).

    Attached Files:

  4. conf

    conf Member

    Anybody help me ?
  5. specci48

    specci48 Well-Known Member Licensed User

    Maybe this sample works for you.
    The keypress event is provided through the active object. As the button is the only object on the form, it is always active. ;)

    This sample catches most key events, except something like PageUp, Insert, etc.


    Attached Files:

  6. conf

    conf Member

    Thank Sepcci48.
    I run on my device and it work so good but some keys still not response. Thank you so much :)
  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