'm trying to force a context menu to open for a VS2010 add-in, just like how Visual Assist X opens a little menu when you press Alt+G on an symbol.
The best information about this I've found so far is from http://msdn.microsoft.com/en-us/library/bb165451(v=vs.80).aspx:
OleMenuCommandService menuService = this.GetService(typeof(IMenuCommandService)) as OleMenuCommandService;
if (null != menuService)
{
CommandID menuID = new CommandID(GuidList.guidMyTWGradientPackageCmdSet, PkgCmdIDList.MyContextMenu);
// Convert client coords to screen coords.
Point p = this.PointToScreen(new Point(e.X, e.Y));
menuService.ShowContextMenu(menuID, p.X, p.Y);
}However this doc is quite old (from VS2005) and I can't figure out how to get to the objects its talking about - VS2010 doesn't appear to have an IMenuCommandService instance.