470,626 Members | 2,085 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,626 developers. It's quick & easy.

Show custom command in context menu Add-In

Hi all,
I wrote add-in that can do different job for files with different
When I do right click on the file I see all my custom menuItems in
context menu of solution explorer for all kind of files .
But I want to see only menuItem that specific for the file selected.
Ok, after I click on one of the menu Item action performs and when I
do right click next time I see only menu Item specific for file
selected e.g. it works as I expected.

I think the problem is in executing QueryStatus method.
When I click first time on file this method is not invoked.
But when I perform menu Item action it is called after Exec method.
After that it is called all the time when I right click the file. So
it works correct.

The question is : How can I force to call QueryStatus when I do right
click on file for the first time?
I gues I have to use some events, but do not know which and how.

I would appreciate any help

Thank you,
Nov 16 '05 #1
0 1392

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by Aaron Queenan | last post: by
reply views Thread by allen | last post: by
7 posts views Thread by gabe | last post: by
1 post views Thread by Dino Buljubasic | last post: by
25 posts views Thread by Tim Zych | last post: by
2 posts views Thread by jamil | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.