Double-Buffering in VB2005?

T

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

hoppy

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

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