Page 1 of 1

Visual Studio 2005 "Whidbey"

Posted: Tue Jan 04, 2005 4:45 pm
by 8729441
What is your time frame for upgrading TeeChart.Net to the .Net Framework 2.0? When will a beta of this be available?

Posted: Wed Jan 05, 2005 8:08 am
by narcis
Hi JohnK,

The Evaluation and Release versions of the TeeChart for .Net component will run in the VS2005 beta 1 with a small modification; when running a vb.net winform with an empty chart dropped onto it you will receive the following error:

NullReferenceException was unhandled

This error is due to changes made to the handling of designtime serialisation visibility in the VS2005 beta and can be remedied within the Solution Explorer: click on the "Show All Files" button and open the child node of the Form.vb file called called Form1.Designer.vb and comment out the following line in the InitializeComponent() method:

Code: Select all

Me.TChart1.Chart = CType(resources.GetObject("TChart1.Chart"), Steema.TeeChart.Chart)
You will now be able to run the empty chart. To avoid similar issues in the VS2005 beta I recommend that you add TeeChart objects to your Chart at runtime rather than at designtime, e.g.

Code: Select all

Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim Bar1 As New Steema.TeeChart.Styles.Bar(TChart1.Chart)
Bar1.FillSampleValues()
End Sub
These issues will be seamlessly solved in the upcoming TeeChart for .NET version 2, a beta version of which will become available very soon.

The currently available version of the TeeChart Pro ActiveX Control, version 7, works without any issues whatsoever in the VS2005 beta 1. Again, running a vb.net winform with an empty chart dropped onto it you will give you no errors; adding objects to it either at designtime or runtime does not present any problems, e.g.

Code: Select all

Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
AxTChart1.AddSeries(TeeChart.ESeriesClass.scBar)
AxTChart1.Series(0).FillSampleValues(10)
End Sub