Unable to add shortcut key for add in created in c#.net 2.0

V

Virender Balouria

Hi,
I've created an add in in c#.net 2.0 for word 2003. It works fine on button
click but I'm not able to add shortcut for my add in. Please help me for
creating shortcut key for add in.
Thanks in advance

Virender Balouria
 
C

Cindy M.

Hi Virender,
I've created an add in in c#.net 2.0 for word 2003. It works fine on button
click but I'm not able to add shortcut for my add in.

Unfortunately, there's no way to directly link a keyboard shortcut in Word to
code stored outside a native Word VBA project. (IOW you can't do it for a
classic VB add-in, either.)

The only possibilities are

1. Link VBA procedures to the keyboard shortcuts and have them call back into
your add-in

2. Hook into the keyboard messages through the Windows API

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 17 2005)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or
reply in the newsgroup and not by e-mail :)
 

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