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

Deactivate Tool

Thread ID:

Created:

Updated:

Platform:

Replies:

77791 Nov 17,2008 11:33 PM UTC Nov 18,2008 05:55 AM UTC WinForms 3
loading
Tags: Diagram
Administrator [Syncfusion]
Asked On November 17, 2008 11:33 PM UTC

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.


Administrator [Syncfusion]
Replied On 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




Administrator [Syncfusion]
Replied On 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.


Administrator [Syncfusion]
Replied On November 18, 2008 05:55 AM UTC

Hi Ameel,

Its nice to know that your query was resolved.

- Ajeet


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.

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

;