Mike O'Neal Posted April 3, 2007 Report Share Posted April 3, 2007 I need to add the Print Preview command to the default context menu on a chart. I can add it to the toolbar and it works fine, and I can find the menu bar, but I can't find the context menu. Is there a way to reference the default context menu and make adjustments to it? Quote Link to comment Share on other sites More sharing options...
Frank Posted April 3, 2007 Report Share Posted April 3, 2007 Yes, the Context Menu is simply a command than contains Sub-Commands. To add your command simply do: chart1.Commands[CommandId.ContextMenuBack].SubCommands.Add(CommandId.PrintPreview); You can also add it at a particular position using Insert instead of Add. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.