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.

NodeClick event

Thread ID:

Created:

Updated:

Platform:

Replies:

76617 Sep 16,2008 03:39 PM Sep 17,2008 10:06 AM Windows Forms 1
loading
Tags: Diagram
Sash
Asked On September 16, 2008 03:39 PM

I'm using the diagram component for winforms. I'm trying to capture events such as NodeClicked, NodeDoubleClicked etc...I see most of the help/sample references are for the Asp.Net component. Where can i find these messages in the WinForms.




J.Nagarajan [Syncfusion]
Replied On September 17, 2008 10:06 AM

Hi Sash ,

Please use the below code snippet to fire NodeClick and NodeDoubleClick events in Diagram Windows Form.

this.diagram1.EventSink.NodeClick += new NodeMouseEventHandler(EventSink_NodeClick);
this.diagram1.EventSink.NodeDoubleClick += new NodeMouseEventHandler(EventSink_NodeDoubleClick);

void EventSink_NodeDoubleClick(NodeMouseEventArgs evtArgs)
{
Console.WriteLine(evtArgs.Node.Name);
}

void EventSink_NodeClick(NodeMouseEventArgs evtArgs)
{
Console.WriteLine(evtArgs.Node.Name);
}

Please let me know if this helps.

Thanks,
Nagaraj



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.

;