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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback


Thread ID:





68370 Sep 19,2007 02:34 PM UTC Sep 20,2007 08:52 PM UTC WinForms 2
Tags: Diagram
Gianni Rossi
Asked On September 19, 2007 02:34 PM UTC

i'd like to create a custom tool and i'm following the logic explained in the Knowledge Base. I'd like to ask where i can find the IMouseEventReceiver class that must be inherited by the custom tool one.


Gianni Rossi
Replied On September 19, 2007 02:40 PM UTC

I've read in the forum that the interface class should be defined as Syncfusion.Windows.Forms.Diagram.IMouseEventReceiver
but i cannot find it here in my installation.
Has something changed in the lastest version of the component?

J.Nagarajan [Syncfusion]
Replied On September 20, 2007 08:52 PM UTC

Hi GTec,

Thanks for your interest in Syncfusion products.

IMouseEventReceiver interface is no longer valid in v5.2. You can use ProcessMouseDown, ProcessMouseMove and ProcessMouseUp methods for firing events in the customtool.

You have to derive a Tool class to create a custom tool. After creating a custom tool you have to register it in Diagram Controller. Please refer to the following code snippet


//To activate the LineTool in MainForm.cs

MyLineTool linetool = new MyLineTool(this.diagram1.Controller);

I have attached the sample that demonstrates this completely. You can download the sample from the following page.


Please refer to the sample and let me know if this helps.



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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon 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.Close Icon