I try to use a ZedGraph control with this code:
I suppose this should work, but it doesn't.
Does someone know how I can make this work?
~~~~EDIT~~~~
When I set a breakpoint at "Graph.AddBar", and run the code, and after the breakpoint I run the code again, then it works sometimes :s
VB.NET:
Dim Graph As New ZedGraph.GraphPane
Graph = zgcNetwork.GraphPane
Dim PPList As New ZedGraph.PointPairList
Dim i As Integer
For i = 0 To 10
PPList.Add(i, i + 1)
Next
Graph.AddBar("", PPList, Color.DarkGreen)
I suppose this should work, but it doesn't.
Does someone know how I can make this work?
~~~~EDIT~~~~
When I set a breakpoint at "Graph.AddBar", and run the code, and after the breakpoint I run the code again, then it works sometimes :s
Last edited: