shankar Posted December 14, 2002 Posted December 14, 2002 Hello, I am drawing graphs using Visual Basic.Net . I have a class Plotter with methods such as Plotter.plot(array,array). This class extends Form. Now I need to plot more than one graph in the same form. So for example, I may initialise Plotter and call the plot() method more than once to plot more than one graph in my client area. But I am facing a problem here. I am unable to update my client area properly.I have overridden onPaint() but even with this I am able to validate only my last plot. The remaining plots disappear whenever I "dirty"(move another window over my form) my form. So how do I retain or store the entire contents of my client area , so that I can refresh the whole client whenever I "dirty" my form or window. Thank you, SHankar Quote
shankar Posted December 16, 2002 Author Posted December 16, 2002 does anyone a way to solve this problem....? Thank you, shankar Quote
*Gurus* divil Posted December 16, 2002 *Gurus* Posted December 16, 2002 You'll have to store each plot as you add it to the form, and when the time comes to paint, draw them all. Quote MVP, Visual Developer - .NET Now you see why evil will always triumph - because good is dumb. My free .NET Windows Forms Controls and Articles
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.