Re: creating popup menu

From: Carlos J. Quintero [MVP] (carlosq_at_NOSPAMsogecable.com)
Date: 06/11/04


Date: Fri, 11 Jun 2004 14:21:03 +0200

You must get first the command bar with
DTE.CommandBars.Item(sCommandBarName) and then you can use
CommandBar.Controls.Add(...) or Command.AddControl(...).

I think that the command bar name for projects is "Project", but there are
other command bars for multi-project selection, etc.

-- 
Carlos J. Quintero (Visual Developer - .NET MVP)
FAQs, Knowledge Base, Files, Docs, Articles, Utilities, etc. for .NET
addins:
http://groups.yahoo.com/group/vsnetaddin/ (free join)
"omayma gouda via .NET 247" <anonymous@dotnet247.com> escribió en el mensaje
news:uRykXjyTEHA.3480@TK2MSFTNGP11.phx.gbl...
> (Type your message here)
>
> --------------------------------
> From: omayma gouda
>
> I'm developing an add-in for VS.NET. I would like to
> create my own popup menu attached to the popup menu
> displaying when user right-clicks on a project. How can I
> do this in details pleas??
>
> -----------------------
> Posted by a user from .NET 247 (http://www.dotnet247.com/)
>
> <Id>Lp+pDhQ7h0uWdCuiEucCrA==</Id>


Relevant Pages

  • Issue customizing existing popup menu bar in Word
    ... is a good description on how to add a new Command Bar to Word. ... If oCommandBar in the code below is the popup menu that shows ... Peter ... Prev by Date: ...
    (microsoft.public.office.developer.com.add_ins)
  • Need help with adding custom button to popup menu
    ... is a good description on how to add a new Command Bar to Word. ... If oCommandBar in the code below is the popup menu that shows ... Peter ... Prev by Date: ...
    (microsoft.public.word.customization.menustoolbars)