Page 1 of 1

visible Property of Rectangle tool

Posted: Thu Nov 13, 2014 12:58 pm
by 9526439
Hi Steema Support,

Is there any property or method in rectangle tool to make it visible or active other than "ActiveProperty". Because we want to hide/Unhide Rectangle tool without using "Active" property.

Thanks in advance.

Thanks & Regards
PlanoResearch

Re: visible Property of Rectangle tool

Posted: Thu Nov 13, 2014 2:53 pm
by Christopher
amol wrote: Is there any property or method in rectangle tool to make it visible or active other than "ActiveProperty". Because we want to hide/Unhide Rectangle tool without using "Active" property.
The Active property is designed to hide/unhide the rectangle tool - why can't you use it?

Re: visible Property of Rectangle tool

Posted: Fri Nov 14, 2014 12:16 pm
by 9526439
Hi Steema,

Thanks for your prompt reply. It is true to make rectangle tool hide/Unhide using Active property but we have some limitation on using this.
So please suggest any other way to hide/unhide rectangle tool.

Thanks&Regards
Planoresearch

Re: visible Property of Rectangle tool

Posted: Mon Nov 17, 2014 10:50 am
by Christopher
Hello,

try:

Code: Select all

    RectangleTool tool1;

    private void InitializeChart()
    {
      tChart1.Series.Add(typeof(Bar)).FillSampleValues();
      tool1 = new RectangleTool(tChart1.Chart);
      tool1.Shape.Transparency = 0;

    }

    private void button1_Click(object sender, EventArgs e)
    {
      tChart1.Tools.Remove(tool1);
    }