473,508 Members | 2,356 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Show custom command in context menu Add-In

Hi all,
I wrote add-in that can do different job for files with different
extension.
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,
Roman
Nov 16 '05 #1
0 720

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
14162
by: Aaron Queenan | last post by:
How can I use the designer to add a context menu to a class which inherits from a control, e.g. treeview, without adding the context menu to a form? For example, to add a context menu with...
0
1360
by: allen | last post by:
If I create a control library control (and change the base control from usercontrol to control). Add that control to the toolbox, then add that control to a windows form. Then add a context menu...
3
1720
by: PJ Olson | last post by:
I have a context menu associated with a tray icon. On the context menu, I have a menuitem that is populated with sub menuitems at run time. When the user right-clicks the tray icon I populate the...
7
2489
by: gabe | last post by:
I've been looking unsuccessfully for resources on building apps that show up on the desktop's context menu. Any ideas?
1
3972
by: Dino Buljubasic | last post by:
Hi, I have a toolbar with several buttons on it, one of which is set up to be as a DropDown button. I also have a context menu with menu items assigend to it so when I click that button, my...
3
1285
by: Franky | last post by:
I'm trying to learn about the MenuStrip and the ContextStrip. I use Google and get an unbelievable number of hits but can't seem to find out the answer to one question. All the items on my...
25
3601
by: Tim Zych | last post by:
Is there keystroke combination that will clear the command window in Visual Studio.Net? Or, is there a way for me to clear it in vb.net code, prior to my code running? Thanks.
2
5891
by: MCM | last post by:
I'm working on a plotting control. The plotting control will have a context menu with basic commands for "scaling", "zooming", etc. Is there a way that, from the parent form, I can add more...
2
5703
by: jamil | last post by:
I have a tab control on a form with several tab pages. I have also added a context menu to the tab control that contains a couple of menu items-- Add and Delete. What I would like to do is...
3
5229
by: hzgt9b | last post by:
Using VS2005, VB.NET, I am developing a windows app that has a DataGridView. I want to enable the display of a context menu on this DataGridView only when a specific set of keys is also pressed...
0
7223
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7115
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7321
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
7036
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5624
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5047
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
1547
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
762
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
414
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.