Home All Groups Group Topic Archive Search About

Double-Buffering in VB2005?

Author
1 Apr 2006 1:11 AM
TyBreaker
I notice in VB 2005 that I can set a form to be double-buffered just by
setting that option to true in the Form properties.  I have a panel on
that form but there doesn't appear to be a double-buffered property for
the panel control.

My first question: is the double buffering set on the form inherited by
the panel control or do I have to do the old fashioned manual
double-buffering with the panel?

I've noticed that animation I render on the panel is still quite
flickery so if double-buffering is working, it doesn't work as well as
when I do it manually.

Grateful for any assistance,
--
  ______     ___               __
/_  __/_ __/ _ )_______ ___ _/ /_____ ____
  / / / // / _  / __/ -_) _ `/  '_/ -_) __/
/_/  \_, /____/_/  \__/\_,_/_/\_\\__/_/
     /___/

There are 10 types of people in this world; those who understand the
binary numbering system and those who don't.

There's no place like 127.0.0.1.

ASCII a silly question, get a silly ANSI.

Author
2 Apr 2006 10:58 PM
hoppy
TyBreaker <tybreakerNO@SPAMhotmail.com> wrote in news:eRx3IlSVGHA.900
@TK2MSFTNGP15.phx.gbl:

Show quoteHide quote
> I notice in VB 2005 that I can set a form to be double-buffered just by
> setting that option to true in the Form properties.  I have a panel on
> that form but there doesn't appear to be a double-buffered property for
> the panel control.
>
> My first question: is the double buffering set on the form inherited by
> the panel control or do I have to do the old fashioned manual
> double-buffering with the panel?
>
> I've noticed that animation I render on the panel is still quite
> flickery so if double-buffering is working, it doesn't work as well as
> when I do it manually.
>
> Grateful for any assistance,

If you create a class that inherits panel, then you can set double
buffering in the constructor just like you would with a form. I agree that
it doesn't appear that controls inherit double buffered status from the
parent...