J
JJ
I am a novice at VB.NET and am trying to get the following code, downloaded
from MSDN to run.
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
Dim arrData(2, 2)
arrData(1, 1) = "Jan" ' Set the labels in the first series.
arrData(2, 1) = "Feb"
arrData(3, 1) = "Mar"
arrData(1, 2) = 8
arrData(2, 2) = 4
arrData(3, 2) = 0.3
arrData(1, 3) = 0.2
arrData(2, 3) = 3
arrData(3, 3) = 6.3
MSChart1.ChartData = arrData 'MSChart1 has the blue squiggly line under
it.......this is MY PROBLEM
End Sub
I changed arrData to reflect zero based indexing.
I have added MSChart to the toolbox and used it on Form1, changing its
(name) property to Chart1.
I thought just adding a dim MSChart1 as Chart1 at the beginning of the sub
would work, it didn't.
What am I missing to get the compiler to recognize MSChart1 ?
Thanks for your time, J e r
from MSDN to run.
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
Dim arrData(2, 2)
arrData(1, 1) = "Jan" ' Set the labels in the first series.
arrData(2, 1) = "Feb"
arrData(3, 1) = "Mar"
arrData(1, 2) = 8
arrData(2, 2) = 4
arrData(3, 2) = 0.3
arrData(1, 3) = 0.2
arrData(2, 3) = 3
arrData(3, 3) = 6.3
MSChart1.ChartData = arrData 'MSChart1 has the blue squiggly line under
it.......this is MY PROBLEM
End Sub
I changed arrData to reflect zero based indexing.
I have added MSChart to the toolbox and used it on Form1, changing its
(name) property to Chart1.
I thought just adding a dim MSChart1 as Chart1 at the beginning of the sub
would work, it didn't.
What am I missing to get the compiler to recognize MSChart1 ?
Thanks for your time, J e r