I just upgraded to VS.NET 2005 and it looks good except the compiler is warning me that I am declaring variables and not using them when I actually am. It is giving me "Unused local variable" on TimeMark, ExcelValues, points, X, Y in the following code:
VB Code:
  1. Dim Progress As New ProgressForm("Writing to Excel")
  2.         Progress.MaxValue = FinalDataArray.GetUpperBound(0) + 1 - Trigger
  3.         Progress.StepValue = 1
  4.         Progress.Open() 'Open progress bar
  5.         Dim TimeMark As Double = 0
  6.         Dim ExcelValues(FinalDataArray.GetUpperBound(0)) As Double
  7.         Dim points As New ZedGraph.PointPairList
  8.         Dim X As Double
  9.         Dim Y As Double
  10.         For i = Trigger To FinalDataArray.GetUpperBound(0) + 1
  11.             Application.DoEvents()
  12.             X = TimeMark
  13.             Y = Conversion.Convert(FinalDataArray(i - 1), Conversion_Class.Type.Weight)
  14.             points.Add(X, Y)
  15.             TimeMark += Increment
  16.             Progress.Increment(1)
  17.         Next
  18.         Progress.CloseForm()

What's up with this?