How can I show an object in multiple panels?

I was wondering how could I use a custom object in more than one panel.

I made a panelModified object (extends from Panel) and want to place it in two normal panels, so when the object change its status, both panels display the updated information.

In my case the "panelModified" is a panel with some Buttons and an embeded video in it.

Here is the code:

panelPreview = new PanelPreview(file); (panelModified object)

panel1.Controls.Add(panelPreview);

panel2.Controls.Add(panelPreview);

it only shows in the panel2 :(

5
задан spender 8 September 2010 в 22:19
поделиться