Change color of bars with V3 and VS2005
Posted: Tue Nov 13, 2007 6:57 am
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
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