Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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

Software bugs are impossible to detect by anybody except the end user.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...