Page 1 of 1
Unable to change the panel color
Posted: Tue Sep 07, 2010 1:55 am
by 15655558
Hi,
I am unable to change the panel color using the following code:
tChart1.Panel.Color = Color.Red;
The above code is working fine in TeeChart v2005, but fail to work in TeeChart v2010.
Please help.
Thanks.
Re: Unable to change the panel color
Posted: Tue Sep 07, 2010 4:25 pm
by yeray
Hi mcpang,
I'm not sure what do you mean with TeeChart v2005.
Anyway, in TeeChart v2010 there is the panel's gradient activated by default. Try deactivating it:
Code: Select all
tChart1.Panel.Gradient.Visible = false;
Re: Unable to change the panel color
Posted: Wed Sep 08, 2010 2:16 am
by 15655558
I have tried setting the panel's gradient to false. But it didn't help.
I have also tried the following code, but it still don't work.
tChart1.Panel.Brush.Color = Color.Red
Sorry, actually TeeChart2005 refers to TeeChartv2 for VS NET 2005.
Re: Unable to change the panel color
Posted: Wed Sep 08, 2010 1:55 pm
by narcis
Hi mcpang,
Code below sets chart panel color to red using latest v2010 release. Can you please check if this works fine at your end and attach a simple example project we can run "as-is" to reproduce the problem if it still persists?
Code: Select all
tChart1.Clear();
tChart1.Panel.Color = Color.Red;
tChart1.Panel.Gradient.Visible = false;
Thanks in advance.
Re: Unable to change the panel color
Posted: Thu Sep 09, 2010 3:19 am
by 15655558
Thanks for the reply.
Manage to get it works by doing the code provided by you.