Add two times (or more) the same object in a tableLayoutPanel

  • Thread starter Thread starter Guillaume Charhon
  • Start date Start date
G

Guillaume Charhon

Hi,

I want to add two times the same picture box in two differents cells of
a TableLayoutPanel.

How can I do ?

I don't want to duplicate my picture picture box.

Thanks !
 
I want to add two times the same picture box in two differents cells of
a TableLayoutPanel.

How can I do ?

I don't want to duplicate my picture picture box.

A Control instance has some data that is very specific to its container
and location within that container. I doubt there's any way to have the
same PictureBox instance contained within multiple cells of a
TableLayoutPanel (or any other container control).

However, you should be able to share the *image* that each PictureBox
instance displays between the two (or more) PictureBox instances.
Depending on how large the image actually is, you may find that doing so
addresses whatever concern it is you might have about having duplicated
PictureBox controls.

Pete
 
Ok, thanks.


Peter Duniho a écrit :
A Control instance has some data that is very specific to its container
and location within that container. I doubt there's any way to have the
same PictureBox instance contained within multiple cells of a
TableLayoutPanel (or any other container control).

However, you should be able to share the *image* that each PictureBox
instance displays between the two (or more) PictureBox instances.
Depending on how large the image actually is, you may find that doing so
addresses whatever concern it is you might have about having duplicated
PictureBox controls.

Pete
 

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

Back
Top