Hi guys,

I am trying to plot a real time graph using Mschart control. I have an array Tot(). Each time Tot() gets new value the Mschart is plotted. My problem is instead of showing the graph, the Mschart control is just flickering. can anyone pl help me.

here is the code.

Private Sub Timer1_Timer()

ReDim Preserve Tot(cnt)

If (MouseOn = True) Then
Tot(cnt) = 10
Tot(cnt) = 0
End If

With MSChart1
.chartType = VtChChartType2dLine
.ShowLegend = True
.ChartData = Tot
End With

cnt = cnt + 1

End Sub

PS: MouseOn is just a boolean variable which is made true or false by some other even in my application.