Home
Search
 
What's New
Index
Books
Links
Q & A
Newsletter
Banners
 
Feedback
Tip Jar
 
C# Helper...
 
XML RSS Feed
Follow VBHelper on Twitter
 
 
 
MSDN Visual Basic Community
 
 
 
 
 
TitleMake moving graphs drawn in PictureBoxes
DescriptionThis example shows how to make moving graphs drawn in PictureBoxes in Visual Basic 6. It draws a scrolling graph and a graph that erases and redraws when it is full.
KeywordsPictureBox, graph, animation
CategoriesGraphics
 
Thanks to Deepesh Agarwal.

When a timer fires, the program generates a new random value to add to its graphs. For the scrolling graph, the control erases its graph and redraws it shifted to the left. For the non-scrolling graph, the program draws the next line on the right. When this graph is full, the program erases it and starts over. See the code for details.

 
 
Copyright © 1997-2010 Rocky Mountain Computer Consulting, Inc.   All rights reserved.
  Updated