Results 1 to 4 of 4

Thread: Key Notification

  1. #1

    Thread Starter
    Member Vahid's Avatar
    Join Date
    Aug 2002
    Location
    Iran
    Posts
    37

    Unhappy Key Notification

    Greetings,

    Could anyone guide me how to install a keyboard hook, please? I need to be notified when the ALT key is pressing (Both the Up and Down events), because this won't report through Standard VB events. Overriding the form's WndProc sub not gonna work because I don't have access to it. The code is for a UserControl that needs to know when the ALT is pressing in its parent form.

    Thanks in advance.

  2. #2
    Fanatic Member
    Join Date
    Sep 2002
    Posts
    518
    How's this:
    Attached Files Attached Files

  3. #3

    Thread Starter
    Member Vahid's Avatar
    Join Date
    Aug 2002
    Location
    Iran
    Posts
    37
    Thanx Fast Helper, I feel so stupid: The Key_Down! Half of the problem just disappeared, I gotta try for the next half: How to prevent form from processing this key. In VB6 days I was doing this as a piece of cake with SetWindowHookEx, But the App.ThreaID (Last arg of that sub) is gone and MSDN said that it has no equivalent, Funny as Hell!

  4. #4

    Thread Starter
    Member Vahid's Avatar
    Join Date
    Aug 2002
    Location
    Iran
    Posts
    37

    Talking Solved!

    Someone in the MSDN Newsgroups points me to a neat site that contains a lot of nice .Net components and a very rich set of FAQ that contains almost all of answers to my un-answered questions (including this one). Pay it a visit at http://www.syncfusion.com/
    Good luck.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width