Hi all
We recently have been going through a lengthy process to upgrade from VS2003 to VS2010 this included upgrading nevron charts from:
Nevron Chart for .NET Ent. Q4 2005 (N.CH.NET.40.ENT),
to
Nevron .NET Vision Pro. 2010 Vol.1 (N.DNV.NET.101.PRO
We have managed to get every thing working using Net framework 2.0. If we migrate to 4.0, we however, get hundreds of errors across all our nevron chart components. The following is the simplest chart we have in our package I have double ## those lines that currently have errors
Any help appreciated Thanks
Sub Chart1()
## NChartControl1.BackgroundStyle.FillStyle = New NGradientFillStyle(GradientStyle.Horizontal, GradientVariant.Variant2, Color.Ivory, Color.Gray)
m_Chart = NChartControl1.Charts(0)
m_Line = CType(m_Chart.Series.Add(SeriesType.Line), NLineSeries)
m_Line1 = CType(m_Chart.Series.Add(SeriesType.Line), NLineSeries)
m_Line2 = CType(m_Chart.Series.Add(SeriesType.Line), NLineSeries)
m_Chart.Width = 150
m_Chart.Height = 70
Dim I As Integer
Dim New_Rate_Temp As Double
m_Line.BorderStyle.Color = Color.Black
m_Line1.BorderStyle.Color = Color.Red
m_Line2.BorderStyle.Color = Color.Blue
New_Rate_Temp = 0
For I = 0 To F_length - 2
m_Line.AddDataPoint(New NDataPoint(New_Rate_Temp, x_data(I)))
m_Line1.AddDataPoint(New NDataPoint(New_Rate_Temp, Del_T_Rate(I)))
m_Line2.AddDataPoint(New NDataPoint(New_Rate_Temp, Out_Temp(I)))
New_Rate_Temp = New_Rate_Temp + DeltaT
Next
m_Line1.UseXValues = True
m_Line.Name = "Steam Temperature"
m_Line1.Name = "Rate of Change"
m_Line.UseXValues = True
m_Line1.DataLabelStyle.Visible = False
m_Line1.MarkerStyle.Visible = False
m_Line2.Name = "Outside wall Temperature"
m_Line2.UseXValues = True
m_Line2.DataLabelStyle.Visible = False
m_Line2.MarkerStyle.Visible = False
m_Line1.DisplayOnAxis(StandardAxis.SecondaryY, True)
m_Line1.DisplayOnAxis(StandardAxis.PrimaryY, False)
m_Chart.Axis(StandardAxis.SecondaryY).Visible = True
## m_Chart.Axis(StandardAxis.SecondaryY).ScaleMode = AxisScaleMode.Numeric
## m_Chart.Axis(StandardAxis.SecondaryY).MajorGridLineStyle.Pattern = LinePattern.Dot
## m_Chart.Axis(StandardAxis.SecondaryY).Title = "Rate of Change"
## m_Chart.Axis(StandardAxis.PrimaryY).DimensionScale.AutoLabels = False
## m_Chart.Axis(StandardAxis.PrimaryY).ValueFormatter.FormatValue(3.1)
## m_Chart.Axis(StandardAxis.PrimaryY).Title = "Temperature"
## m_Chart.Axis(StandardAxis.PrimaryX).Title = "Time"
## m_Chart.Axis(StandardAxis.PrimaryX).ScaleMode = AxisScaleMode.Numeric
## m_Chart.Axis(StandardAxis.PrimaryX).SetMajorShowAtWall(ChartWallType.Back, True)
## m_Chart.Axis(StandardAxis.PrimaryX).MajorGridLineStyle.Pattern = LinePattern.Dot
## m_Chart.Axis(StandardAxis.PrimaryY).MajorGridLineStyle.Pattern = LinePattern.Dot
m_Chart.Wall(ChartWallType.Back).Width = 0
NChartControl1.Refresh()
End Sub