Adding commnad to context menu

Visual Studio .Net


  • 1. devenv.exe (VC7) produces no text output when run from batch file
    Hi, Another quick question / comment. When running devenv.exe from the command line with the following command: C:\Program Files\Microsoft Visual Studio .NET 2003\Common7\IDE>devenv v:\Dev\Solution1.sln /build Debug /project Project1 devenv starts compiling and outputs status information to the command shell in an identical format to that produced in the IDE's Output Window so: Microsoft (R) Development Environment Version 7.10.3077. Copyright (C) Microsoft Corp 1984-2001. All rights reserved. ------ Build started: Project: Project1, Configuration: Debug Win32 ------ Project1 - up-to-date. Build Time 0:04 ---------------------- Done ---------------------- Build: 1 succeeded, 0 failed, 0 skipped However a batch file that attempts to run the same command: cd "C:\Program Files\Microsoft Visual Studio .NET 2003\Common7\IDE" c: devenv.exe v:\Dev\Solution1.sln /build Debug /project Project1 pause successfully runs devenv compilation but with no text output. Can anyone confirm this behaviour? Is there a way to get the output working? Many thanks, Daniel
  • 2. Porting a C++ form from VS2003 to VS2005
    I am porting projects from VS2003 to VS2005, using Managed C++ for both until I have the time to convert the VS2005 projects to C++/CLI. In porting one of my projects I had a WinForm. In VS2003 the form shows up under my header files for the project with a special dark icon for the header file and another special icon under it for the .resX file. Opening the header file beings up the form in its design window. This is how it should work. When I manually added the header and source files to my VS2005 project, the header file did not automatically addd the .resX fo itself under it. I had to separately add the .resX file to the project but the header file and its .resX file are totally disconnected in the IDE. There is no way I can bring up the form in design mode. Opening the header file just brings up its code and opening the .resX file just beings up an editor for .resX files with an Other, Add Resource, and Move Resource menu items. How do I get VS 2005 to recognize my header file/.resX file as a form ? Once I do, and have /clr:oldSyntax for the project, will the form manager be smart enough to generate Managed C++ code for the form instead of C++/CLI ?
  • 3. problem with the members combo box in VC.NET 2003 IDE
    Hi All, I don't seem to understand why choosing a member from the members combo box takes me to a different member!!! and sometimes to the middle of nowhere!!! Say I have 2 members foo1() and foo2() in a C++ class. Choosing foo1 from the members combo takes me to foo2. I have files that have many members and I am unable to debug things properly!!! Could someone help me out please? Thanks for your help. -raghav

Adding commnad to context menu

Postby mbosticky » Tue, 13 Apr 2004 17:53:42 GMT


I would like to add my own command (through Add-In) to the context
menu which pops up when I right click in the code editor whilst
debugging. I.e. where 'Add Watch' and 'QuickWatch...' commands are. Is
this possible?

I have read a post here about a year ago titled "How to add command to
editors context menu". This explains how to add a command to a context
menu. But what is the context menu here?

I looked arround a fair while and couldn't find an answer or an Add-In
that does this. Your suggestions will be greately appreciated.


Re: Adding commnad to context menu

Postby mbosticky » Wed, 14 Apr 2004 01:42:55 GMT

Oops. I have just found an answer in this post:

Subject: RE: Visual Studio's Context Menu 
Newsgroups: microsoft.public.dotnet.framework
Date: 2003-09-01 01:23:56 PST 

Cheers, Martin.

Similar Threads:

1.Adding menu items to a control's context menu

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 commands to the control's context 

I'm envisioning a case where the control has a set of context menu items, 
and the parent form also has a set of context menu items.


2.Adding my menu to Context Menu of IE

Hi all,
i have 4 menuitems A,B,C,D. i want these to be added as menu items to
Context menu of IE. how to do this? Can i use the IContextMenu
interface to dot this? Should i also use IShellExtension?

Please suggest some suitable articles.

3.Add image to Context Menu Strip Menu Item in code

I am trying to add a project resource image to a contextmenustrip
menuitem in code. Here is the code:

            ContextMenuStrip cm = new ContextMenuStrip();
            Image image;
            Stream s;

            s = this.GetType().Assembly.GetManifestResourceStream
            image = Image.FromStream(s);
            cm.Items.Add(new ToolStripMenuItem("Menu Item Text",
image, this.MenuItemHandler_Click));

It dies trying to assign the image from the stream to the Image
variable. Error is:

Value of 'null' is not valid for 'stream'.

Any help appreciated.

4.Adding Complex Context Menu to Default Windows Menus

I have figured out how to add custom menu items to various buildin
context menus by looking at a project on and then
doing some registry searches.

But I can't find how to add a complex menu item, that is, a menu item
that has a submenu, or possibly a sub-submenu.

I also cannot figure out how to tell windows just where in the menu
the new menu item should appear, or how to add a new separator line to
setoff the new menu item.

I know it can be done since I have a copy of WinZip and it installs a
new context menu item with submenu items. Also, there are software
products available to do this.

Are there any instructions anywhere out there on how to do this?

5.Add menu to Explorer Context Menu


I would like to add a Menu Item to the Explorer Context Menu so that when
the User Right Clicks on a File, they are given a choice to launch my
application with the selected file passed as a command line argument.

Can someone point me to some information on how to set that up? Hopefully as
part of the installation?



6. Add menus to default context menu?

7. Can I add them to the context menu and programmically copy them to the main menu

8. Q: Add menus to default context menu?

Return to Visual Studio .Net


Who is online

Users browsing this forum: No registered users and 13 guest