If you dig a little bit, you'll find that the EventArgs of the Paint Event have a ClipRectangle read only property that hold the reference of the region that needs to me painted (that is invalidated).
You can just discard this info and paint the whole control or, on the other hand, you can use this info to just paint what's necessary...
If the painting process is pretty basic, maybe you'll have more work to use this than profit... but if the process is complex, this will save you a lot of run-time performance headaches...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.