Page 1 of 1

Change color of bars with V3 and VS2005

Posted: Tue Nov 13, 2007 6:57 am
by 6926780
Hello,

we are using TChart 3.2.2868-26903 and the VS 2005. We created a new project, in this we added a new TChart with one barserie. Everything is ok. Then we want to change the color of the bar. We use the property dialog of the designer (Series -> Format -> Format -> Button "Color") to change the color. Everything is still ok. After we rebuild the project and want to reopening the designer again, we get the error:
"Object reference not set to an instance of an object"
The VS shows us the following line in the code:

this.bar1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))));

Is there any solution to fix this error? We are not able to open the designer anymore until we will delete this line. But then we ar not bale to chnage the color.
Thanks in advance
Regards
Marco

Re: Change color of bars with V3 and VS2005

Posted: Tue Nov 13, 2007 10:20 am
by Chris
Hello Marco,
Marco wrote: Is there any solution to fix this error? We are not able to open the designer anymore until we will delete this line. But then we ar not bale to chnage the
Thank you for reporting this issue to us.

We have been able to fix this problem and a fix to it will be included in the next maintenance release, due out in the first week of December. Until that time my best suggestion is that you delete this line from *.designer.cs and specify the desired colour at runtime. You will notice that binary serialization (*.ten files) is not affected.

Sorry for any inconvenience caused.