Repaint

To force itself to repaint? You can invalidate the form (i.e. Me.Invalidate or this.Invalidate())
 
It works...

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...

Alex :p
 
Back
Top