Graphics flicker

W

Wade G

Is there a way to create a new Graphics object, write to
it, then copy the object to a controls Graphics object?
For example, I have a panel object that I want to draw
lines to using Invalidate() and the Paint handler. How
do I write my lines to a new object then copy this object
to the controls object so no flicker occurs?
 
K

Ken Tucker [MVP]

Hi,

Do not invalidate the whole panel. Only invalidate the region you
want redrawn.

Ken
------------------
 
T

Tom Dacon

Google for 'double-buffering' in
microsoft.public.dotnet.framework.windowsforms.

Tom Dacon
Dacon Software Consulting
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top