We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

contextmenustrip diagram 5.102.0.51

Thread ID:

Created:

Updated:

Platform:

Replies:

62632 Jun 19,2007 12:42 PM Jun 20,2007 04:58 AM Windows Forms 1
loading
Tags: Diagram
Raymond Sisneros
Asked On June 19, 2007 12:42 PM

I am trying the release 5.102.51.
I am trying to associate a contextmenustrip to a diagram this worked in release 4.4.0.51.
When I attempt to access the contextmenu with my right most mouse button it never displays.

I have attached a sample program based on dynamic symbol that displays the symptom.

Thanks

Ray.

CS63.zip

Meera Fathima [Syncfusion]
Replied On June 20, 2007 04:58 AM


Hello Ray,

Thanks for sending the sample. It seems the Diagram.MouseUp event is not there in the sample that you have attached with this. I have modified the sample to use Diagram.MouseUp() event method and called the ContextMenuStrip.Show() method within this event. Below is the sample code snippet for your reference.

this.diagram.MouseUp += new System.Windows.Forms.MouseEventHandler(this.diagram_MouseUp);

private void diagram_MouseUp(object sender, MouseEventArgs e)
{
if (e.Button == MouseButtons.Right)
{
this.contextMenuStrip1.Show(this.diagram, e.X,e.Y);
}
}

As with the above code, the application shows the context menu as expected. I have also attached the modified sample with this. You can get the sample from the following link - http://websamples.syncfusion.com/samples/Diagram.Windows/F62632/main.htm

Please look into the sample and let me know if have any more question regarding this.

Thanks,
Meera.

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;