I have created an application. It is a little bit heavy application and i hv tried to minimize the number of functionalities in OnPaint() methods of the various forms. But still my application takes time to repaint the view after it is restored from minimized state. Is there any method to save the view state and other stuff in memory so that we can avoid calling RePaint everytime the app is restored?Im using .NET 2.0 for the application

Recommended Answers

All 2 Replies

Show me your OnPaint(..) methods..

The application contains many OnPaint(). For each control i require it to have a paint method. For example: the menustrip control, title bar etc...
My query is whether i can avoid the operations being done in OnPaint() except for the first time and when a application is minimized i save the view and load from memory itself instead of repainting.?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.