Event keyboard question

Discussion in 'Questions (Windows Mobile)' started by micro, Oct 26, 2008.

  1. micro

    micro Well-Known Member Licensed User

  2. BjornF

    BjornF Active Member Licensed User

    Dear Micro,

    my Italian is not very good (=non-existent :)). Could you (or someone else) translate your question to those of us who do not speak it? I think it will increase the chances of you getting an answer.

    all the best / Björn
     
  3. micro

    micro Well-Known Member Licensed User

    ;) ok.

    I want at any time, also if at that moment the focus is on a label or a textbox or a form or other, capture the button pressed on the keyboard.
    In vb.net with the function of GetAsyncKeyState Lib "user32.dll" can get everything but with basic4ppc can not get.
    Can you help?

    Bye
     
  4. BjornF

    BjornF Active Member Licensed User

  5. Ricky D

    Ricky D Well-Known Member Licensed User

    in a textbox

    use the textbox's keypress event - it brings back the key that was pressed.

    as for a label there is no way.

    I think it might take something written in C++ to access the sip keypresses.
    That is beyond my understanding sorry to say.

    I've started dabbling in C# writing a custom SIP that covers the area of the normal sip and allows me to show alphabet for strings and numeric for numbers.
    My sip won't be brought up by the sip icon though. When a control gets focus it calls the Show method.

    regards, Ricky
     
  6. Erel

    Erel Administrator Staff Member Licensed User

    See the first example in the Door library documentation (KeyPreview): Door
     
  7. micro

    micro Well-Known Member Licensed User

    :) ok Erel, it works perfectly.
    Only a problem, why the key "Tab" is not captured?
    :sign0188:
     
  8. Filippo

    Filippo Expert Licensed User

  9. micro

    micro Well-Known Member Licensed User

    ok, grazie filippo. :sign0060:
    Ho fatto una prova veloce sul pc e ci siamo quindi dovrei aver risolto.
    Bye
     
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