H
Hugh Janus
Hi all,
I am drawing some lines on a picturebox control. In the .Paint event
of the picturebox I draw the lines of a graph. These lines are static
and never move. Now, in the same Sub I am drawing the plot of the
graph based on some changing variables in memory.
This works and when the variables change in memory I call the
Invalidate method of the picturebox to redraw the lines. This seems
wrong to me as I am drawing many lines again (the graph axis etc.) just
to refresh the line of the graph. It also gives me a flicker.
Does anyone know of a better way to eliminate the existing line on the
graph and redraw it (or to redraw an existing line if that is
possible.)
Thanks,
Hugh
I am drawing some lines on a picturebox control. In the .Paint event
of the picturebox I draw the lines of a graph. These lines are static
and never move. Now, in the same Sub I am drawing the plot of the
graph based on some changing variables in memory.
This works and when the variables change in memory I call the
Invalidate method of the picturebox to redraw the lines. This seems
wrong to me as I am drawing many lines again (the graph axis etc.) just
to refresh the line of the graph. It also gives me a flicker.
Does anyone know of a better way to eliminate the existing line on the
graph and redraw it (or to redraw an existing line if that is
possible.)
Thanks,
Hugh