We have a picture box on a form with some lines drawn using the Paint() method. However, whenever a message box pops up on top of the picturebox, that portion of the picturebox is erased. The same thing happens if we move the form off the screen, the portion that is off the screen will get erased.
We are trying to make a simple graph. We can make it work with a picturebox if we can prevent it from being erased. Using the PictureBox1.Invalidate() in the Paint() method refreshes it so much that it slows down the application. We could use a timer, but as you can imagine that would still look dumb.
What is the best way to make a simple graph like this and make it stay?
We are trying to make a simple graph. We can make it work with a picturebox if we can prevent it from being erased. Using the PictureBox1.Invalidate() in the Paint() method refreshes it so much that it slows down the application. We could use a timer, but as you can imagine that would still look dumb.
What is the best way to make a simple graph like this and make it stay?