PDA

Click to See Complete Forum and Search --> : Key Notification


Vahid
Oct 20th, 2002, 06:39 PM
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.

Slow_Learner
Oct 20th, 2002, 08:57 PM
How's this:

Vahid
Oct 21st, 2002, 06:57 PM
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!

Vahid
Oct 22nd, 2002, 08:58 PM
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.