Change color of bars with V3 and VS2005

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
Marco
Newbie
Newbie
Posts: 20
Joined: Fri Nov 15, 2002 12:00 am

Change color of bars with V3 and VS2005

Post by Marco » 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

Christopher
Site Admin
Site Admin
Posts: 1349
Joined: Thu Jan 01, 1970 12:00 am
Location: Riudellots de la Selva, Catalonia
Contact:

Re: Change color of bars with V3 and VS2005

Post by Christopher » Tue Nov 13, 2007 10:20 am

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.
Thank you!

Christopher Ireland (Steema crew)
Please be aware of the newsgroup archives:
http://www.teechart.net/support/search.php
http://groups.google.com
http://codenewsfast.com/

Post Reply