471,350 Members | 1,813 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,350 software developers and data experts.

Is the way a picurebox draws itself different from how a panel does it

I have a usercontrol that contains two pictureboxes

One is on top of the other.

The bottom one is the parent of the top one.

The top one is transparent.

I invalidate the top one often

I don't need all the bells and whistles of a picturebox so I change the top
one to a panel

Now when I invalidate I get much flashing.

Is there something about the way a picurebox draws itself that is different
from how a panel does it?

Can I fix the panel?

Even if I can, does it make more sense to use the picturebox?

Thanks in advance
Feb 2 '06 #1
3 1206
> Is there something about the way a picurebox draws itself that is
different from how a panel does it?
Considering your experience, I would say that is the logical conclusion.
(IOW, yes)
Can I fix the panel?
Yes, but -
Even if I can, does it make more sense to use the picturebox?
Yes, it does.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
Who is Mighty Abbott?
A twin turret scalawag.

" **Developer**" <RE*************@a-znet.com> wrote in message
news:uu**************@TK2MSFTNGP10.phx.gbl...I have a usercontrol that contains two pictureboxes

One is on top of the other.

The bottom one is the parent of the top one.

The top one is transparent.

I invalidate the top one often

I don't need all the bells and whistles of a picturebox so I change the
top one to a panel

Now when I invalidate I get much flashing.

Is there something about the way a picurebox draws itself that is
different from how a panel does it?

Can I fix the panel?

Even if I can, does it make more sense to use the picturebox?

Thanks in advance

Feb 2 '06 #2
I think the picture box uses a technique called double-buffering which uses
more memory when drawing but provides the ability to have a faster rate of
draw. This is set as a property on the control so you may be able to set it
on the panel. If you cant, you can set it on your user control.

HTH

Ciaran
" **Developer**" <RE*************@a-znet.com> wrote in message
news:uu**************@TK2MSFTNGP10.phx.gbl...
I have a usercontrol that contains two pictureboxes

One is on top of the other.

The bottom one is the parent of the top one.

The top one is transparent.

I invalidate the top one often

I don't need all the bells and whistles of a picturebox so I change the
top one to a panel

Now when I invalidate I get much flashing.

Is there something about the way a picurebox draws itself that is
different from how a panel does it?

Can I fix the panel?

Even if I can, does it make more sense to use the picturebox?

Thanks in advance

Feb 2 '06 #3
Thanks, I'll try that
"Ciaran" <ci****@theodonnells.plus.com> wrote in message
news:43**********************@ptn-nntp-reader02.plus.net...
I think the picture box uses a technique called double-buffering which uses
more memory when drawing but provides the ability to have a faster rate of
draw. This is set as a property on the control so you may be able to set it
on the panel. If you cant, you can set it on your user control.

HTH

Ciaran
" **Developer**" <RE*************@a-znet.com> wrote in message
news:uu**************@TK2MSFTNGP10.phx.gbl...
I have a usercontrol that contains two pictureboxes

One is on top of the other.

The bottom one is the parent of the top one.

The top one is transparent.

I invalidate the top one often

I don't need all the bells and whistles of a picturebox so I change the
top one to a panel

Now when I invalidate I get much flashing.

Is there something about the way a picurebox draws itself that is
different from how a panel does it?

Can I fix the panel?

Even if I can, does it make more sense to use the picturebox?

Thanks in advance


Feb 3 '06 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Peter Oliphant | last post: by
reply views Thread by George Ter-Saakov | last post: by
6 posts views Thread by Brian Henry | last post: by
8 posts views Thread by =?Utf-8?B?R3JlZyBMYXJzZW4=?= | last post: by
reply views Thread by XIAOLAOHU | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.