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.


    sepcci48
     

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