Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Visual Studio.NET / Extensibility / October 2004

Tip: Looking for answers? Try searching our database.

Adding custom items to Tools menu via VB code

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Progalex - 27 Oct 2004 17:53 GMT
Hi again!

This is my question: I'd like to add at run-time a new item to the Tools
menu, using VB .Net code. Does anyone know the steps to do (e.g.: registry
keys to create, folder to copy files to, how parameters must be passed to the
main command line..)?

Many thanks!
Alex
"Ed Dore [MSFT]" - 28 Oct 2004 17:17 GMT
Hi Alex,

If you are referring to adding an item under the external tools section of
the tools menu, the information is actually stored under the
HKCU\Microsoft\VisualStudio\7.1\External Tools. There keys listed like
they're self explanatory. There isn't anything exposed from the VS
automation model, or VSIP SDK that'll automate adding items here though. So
you would need to just write the information to the registry.

The other option would be to build an addin that adds a named command to
the Tools menu. The extensibility wizard actually has an option that'll add
a named command to the Tools menu. But then you'd have to programatically
launch your tool from the addin's menu handler, and you wouldn't actually
be a participant in the External Tools section of the Tools menu.

Sincerely,
Ed Dore [MSFT]

This post is 'AS IS' with no warranties, and confers no rights.
Progalex - 28 Oct 2004 17:39 GMT
Ok, thank you. This is the answer I needed. I was looking through HKLM keys
so this was my mistake.

I thought  it was more difficult...

Thanks again and best regards,
Alex

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.