Skip to content
Discussion options

You must be logged in to vote

Hi @baratiistok3,

You can unsubscribe from the default event and add your custom event like this:

formsPlot1.RightClicked -= formsPlot1.DefaultRightClickEvent;
formsPlot1.RightClicked += CustomRightClickEvent;

private void CustomRightClickEvent(object sender, EventArgs e)
{
ContextMenuStrip customMenu = new ContextMenuStrip();
customMenu.Items.Add(new ToolStripMenuItem("Add Sine Wave", null, new EventHandler(AddSine)));
customMenu.Items.A…

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by swharden
Comment options

You must be logged in to vote
2 replies
@swharden
Comment options

@vtontodonato
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants