I created a UserControl (basically containing a datagridview for
showing some data). I need this UserControl to be visible on 2 forms
at the same time.
Here's a stripped down version of some code:
Dim Myusercontrol as UserControlDataGrid
Myusercontrol = New UserControlDataGrid
Dim myForm1 as new Form1
myForm1.controls.add(Myusercontrol)
myForm1.show
Dim myForm2 as new Form2
myForm2.controls.add(Myusercontrol)
myForm2.show
What is happening is myForm2 gets the usercontrol, but myForm1 doesn't.
If i flip the code, then, the reverse is true.
How can I get BOTH myForm1 AND myForm2 to get the exact same
usercontrol?
Thanks for all your help!
John