Udostępnij za pośrednictwem


How to find Command GUID:ID pairs, Part Two

What if you want to find the Command GUID:ID pair associated with a context menu item?  Paul Harrington uses this technique --

That one's a little tricky. The ID you want is {D309F791-903F-11D0-9EFC-00A0C911004F}:00000431

It's a little tricky to get to this, but here's how.

 

1. Load your WebLibrary project and select the "foo" web reference (You have to do this because the items on that menu are context sensitive)

2. Tools/Customize...

3. On the Toolbars tab, check "Context Menus". You should see a big toolbar appear with several "xxx Context Menus". Not many people know about this. It's a special toolbar that's only visible in customize mode. It collects all context menus into one tree. Some have been categorized, but the vast majority fall under "Other Context Menus". Fortunately, the one you want has been categorized under "Project and Solution".

4. On that new toolbar click on the "Project and Solution Context Menus"

5. Click on the "Folder" submenu.

6. Make an obvious customization to one of the commands (e.g. right click on "Update Web Reference" and rename it to "FindMe"). Note that you can't customize "Folder" itself, but you can customize the items inside (by design).

7. Close the customize dialog

7b) Verify that your customization worked (right click on 'foo' in the solution explorer)

8. Export your customizations (Tools/Import and Export Settings...)

 

Continue with the Settings file in How to find Command GUID:ID pairs.

------------------------------------
This posting is provided "AS IS" with no warranties, and confers no rights.

UpdateWebReference.JPG