Keyboard shortcut events in Outlook 2003, del, ctrl-n...

G

g62msdnatll

PLATFORM/DEVENV: VS .NET C# Outlook 2003, Windows XP

PROBLEM: Is there a way to catch events that are caused by keyboard
shortcuts in Outlook 2003? I'd like to catch the "Item_Removed" event when a
user hits "Delete" or "Ctrl-D" and the New_Inspector event when the user hits
"Ctrl-N" among other things.

If not, how do you hook into keyboard events in general in VS .NET C#?

Please provide links to sample code or keywords I can use to search for more
information. Any help would be greatly appreciated.

Thanks!
 
P

Peter Huang [MSFT]

Hi

I have replied to your another two posts about New_Inspector and
Item_Removed.
If you still need the hook the keyboard, you may take a look at the link
below.
Managing Low-Level Keyboard Hooks with the Windows API
http://www.codeguru.com/vb/gen/vb_system/keyboard/article.php/c4829/

Processing Global Mouse and Keyboard Hooks in C#
http://www.codeproject.com/csharp/globalhook.asp


Best regards,

Peter Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top