.NET Framework Developer Center >
Visual Studio Forums
>
Visual Studio Tools for Office
>
Right Click pop-up in word
Right Click pop-up in word
- How do I get something to appear in the menu/pop-up when I right click in Word 2007? (I want to use right click instead of having to go up to a the ribbon or quick access bar.)
- Moved byWang, JieMSFT, ModeratorThursday, November 05, 2009 5:53 AMOP wants an Word Add-in (From:Windows Presentation Foundation (WPF))
All Replies
- Hi,
Your question doesn't sound like a WPF related one. Could you elaborate?
What type of project you're working on?
There are several ways to add your own menu items to the Word context menu, however which way to take depends on the project scenarios.
Waiting for more information.
Thanks,
Jie
MSDN Subscriber Support in Forum
If you have any feedback on our support, please contact msdnmg@microsoft.com
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
If you have any feedback, please tell us.
The CodeFx Project
My Blog (in Simplified Chinese) - I might have osed the question in the wrong forum. Finding the right forum has been harder than learning Visual Studio. Anyway, here's what I'm doing:
I am creating a sql database record based on the selected text in Word and other Word document information. I want the user to be able to quickly launch it, so I want to put a button on the right click menu when text is selected in Word. It's important that the user doesn't have to do more than select the text and click a button because the user will be in a position that any more of an interuption would be a distraction to the user's main task of reading the document. Having the button available on right click will save the user having to go all the way up to the ribbon or quick bar.
Hopefully this explanation will at least allow you to point me to the forum. Thanks. - Alright. Based on your description, I think the VSTO technology is what you're looking for. You can use VSTO to make a Word Add-in to do what you want.
I'm moving this post to the VSTO forum for further discussion.
And yes there are quite a lot forums here sometimes confusing, but next time you can make use of the "Where is the Forum For...?" forum if you don't know where to post. :)
Have a nice day.
Regards,
Jie
MSDN Subscriber Support in Forum
If you have any feedback on our support, please contact msdnmg@microsoft.com
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
If you have any feedback, please tell us.
The CodeFx Project
My Blog (in Simplified Chinese) - Hello PowerUser,
Welcome asking question in VSTO forum! It's a long way for you to get here, but finally you arrived.
Add an item in Word context menu is one of the frequency asked questiones, you could get many answers if you perform a search in this forum, following threads are some of them:
http://social.msdn.microsoft.com/Forums/en-US/vsto/thread/d975bd45-d31f-4f74-9b8b-69043d91a0da/
http://social.msdn.microsoft.com/Forums/en-US/vsto/thread/d6029985-2415-47c7-bd35-0771251cbc11
Generally we could subscribe WindowBeforeRightClick event, and insert item in CommandBars collection of Word Object Model. Above threads all gave out a detailed code of doing this, hope this could help you, if you have any further questions please feel free to follow up.
Thanks.
Tim LiMSDN Subscriber Support in Forum
If you have any feedback on our support, please contact msdnmg@microsoft.com
Please remember to mark the replies as answers if they help and unmark them if they provide no help.


