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

Deactivate Tool

Hi, I tried activate zoomtool and pantool. Its all good. Works fine.

However, I can't deactivate. it says "Value of Type String cannot be converted to Syncfusion.windows.forms.diagram.tool".

How do i deactivate? Please assist.


3 Replies

AD Administrator Syncfusion Team November 18, 2008 04:34 AM UTC

Hi Ameel,

You can deactivate any tool registered in your application using the following code procedure:

1. The tool that is Active at the moment is first got as follows:

Tool t_tool = this.diagram1.Controller.ActiveTool;

2. To deactivate the active tool, the following method is used:

this.diagram1.Controller.DeactivateTool(t_tool);


I am sure this will resolve your query. Update me of your experiences and also post comments if your require any
further clarifications in this regard, Thanks!

- Ajeet





AD Administrator Syncfusion Team November 18, 2008 05:48 AM UTC



>Hi Ameel,

You can deactivate any tool registered in your application using the following code procedure:

1. The tool that is Active at the moment is first got as follows:

Tool t_tool = this.diagram1.Controller.ActiveTool;

2. To deactivate the active tool, the following method is used:

this.diagram1.Controller.DeactivateTool(t_tool);


I am sure this will resolve your query. Update me of your experiences and also post comments if your require any
further clarifications in this regard, Thanks!

- Ajeet





Thanks. Goodwork.



AD Administrator Syncfusion Team November 18, 2008 05:55 AM UTC

Hi Ameel,

Its nice to know that your query was resolved.

- Ajeet


Loader.
Live Chat Icon For mobile
Up arrow icon