Problem with Graphics

Hi

I wrote a program to display some graphs on a PictureBox using Graphics functions from VB.Net

The graph displays nicely, but it seems to have a little problem

Everytime I minimize the program or having another window cover the graph (even partialy), the graph's portion that has been covered is gone!!! (when minimize, all graph is gone)!!!

I would like to know what is the problem and how to solve it
(it is not related to focus, if another window is selected, as long i don't cover the graph, it stays there)
yako_cAsked:
Who is Participating?
 
Mike TomlinsonMiddle School Assistant TeacherCommented:
You need to place the code for drawing your chart into your Forms or PictureBoxes Paint event.

Idle_Mind
0
 
Timbo87Commented:
Is the graph dynamically drawn or loaded from a file?
0
 
zulu_11Commented:
I think that you'll have to override the base class redraw sub so that everytime the form is redrawn you call the code to redraw whatever was there in the first time..
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.