clone usercontrol

J

jor

Hi all, I would like to know if it possible to do the following

I have an usercontrol in a windows form (let called formA)
I have a second form (formB) where I would like to place the same
usercontrol, that is a pointer or something to the usercontrol that
is in formA so the changes of the usercontrol are reflected in both
forms.

thanks!
 
G

Gabriel Lozano-Morán

Example of MVC pattern. You seperate the View from the Controller and the
Model.

In your case you have two views which happen to be equivalent views, but you
only need one controller and one model. When the model changes it will
update the views through the controllers and when the view changes the
controller is responsible for updating the model.

Gabriel Lozano-Morán
The .NET Aficionado
http://www.pointerx.net
 

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