How to get keystroke


  • I want to get the key what I have pressed. I got it through keypressed and keyup events. but i need to get through window procedure. can you help me....
    • Moved by Karel ZikmundMicrosoft employee Tuesday, November 24, 2009 4:47 AM Likely WinForms question (From:.NET Framework 4 Application Compatibility - Beta 2)
    Tuesday, November 24, 2009 4:19 AM


  • Hi,


    Set the Keyboard hook.


    Please check the following FAQ for more details.

    How do I set a low level mouse hook and keyboard hook in C#?


    Best regards,

    Ling Wang

    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
    • Marked as answer by Jing0Moderator Monday, November 30, 2009 2:36 AM
    Thursday, November 26, 2009 6:35 AM