|
-
Real-time graph using Mschart
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
Else
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks