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. Image for the cookie policy date
close icon

NodeClick event

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.




1 Reply

J. J.Nagarajan Syncfusion Team September 17, 2008 02:06 PM UTC

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



Loader.
Live Chat Icon For mobile
Up arrow icon