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

Diagram.Tool.Active not found

Hello,
Diagram control, Ver4.2.0.60, upgraded from v3.3.0.0 got error.
Any idea?



Error 15 ''Syncfusion.Windows.Forms.Diagram.Tool'' does not contain a definition for ''Active'' C:\PMA\STN.PMA.UL\frmDecisionTree.cs 2782 18 STN.PMA.UL


Tool pTool=this.diagram.Controller.GetTool("ZoomTool");
if (!pTool.Active)
{
Point pos=new Point(e.X,e.Y);
popDiagram.Show(this.diagram,pos);
}

1 Reply

J. J.Nagarajan Syncfusion Team August 28, 2006 10:28 AM UTC

Hi Lan,

Thanks for your interest in Syncfusion products.

The Tool.Active is no longer work for the v.4.2.0.60.You can use Tool.InAction property which indicates whether the tool is currently active or not.Please refer the following code snippet

Tool pTool=this.diagram.Controller.GetTool("ZoomTool");
if (!pTool.InAction)
{

}

Please let me know if you have any questions.

Thanks,
Nagaraj

Loader.
Live Chat Icon For mobile
Up arrow icon