Re: smooth progress bar flickering
From: Jeff Johnson [MVP: VB] (i.get_at_enough.spam)
Date: 08/18/04
- Next message: Jeff Johnson [MVP: VB]: "Re: Access Keys for Tab Control in VB.NET"
- Previous message: Jeff Johnson [MVP: VB]: "Re: How can we define control array in VB.Net"
- In reply to: Brian Henry: "smooth progress bar flickering"
- Next in thread: Brian Henry: "Re: smooth progress bar flickering"
- Reply: Brian Henry: "Re: smooth progress bar flickering"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 18 Aug 2004 14:27:43 -0400
"Brian Henry" <brianiupmsdn@newsgroups.nospam> wrote in message
news:ORYiw7ThEHA.2764@TK2MSFTNGP11.phx.gbl...
> I created a smooth progress bar with this code.. but if you update the
> values in a row quickly of it and watch it on screen it flickers... how
> would i change this to reduce the flickering? thanks...
I didn't scan the code in its entirety, but I have a suggestion which may
apply. If you are clearing the drawing area every time you draw a new
value...don't! This is most likely what is causing the flicker. Keep
internal variables that know what the old value was and clear the drawing
area only if the progress bar is getting smaller. Otherwise just draw over
what's already there.
- Next message: Jeff Johnson [MVP: VB]: "Re: Access Keys for Tab Control in VB.NET"
- Previous message: Jeff Johnson [MVP: VB]: "Re: How can we define control array in VB.Net"
- In reply to: Brian Henry: "smooth progress bar flickering"
- Next in thread: Brian Henry: "Re: smooth progress bar flickering"
- Reply: Brian Henry: "Re: smooth progress bar flickering"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|