Open a panel in a different app
Hi,
I know that you can open a form from App1 in App2 by using the following code:
System.Reflection.Assembly myForm = System.Reflection.Assembly.LoadFrom(@"D:\WindowsApplication7\bin\Debug\WindowsApplication7.exe");
object f = myForm.CreateInstance(myForm.GetName().Name + ".Form1");
Form frm = (Form)f;
frm.MdiParent = this;
frm.Show();
How can I do this with individual controls on Form1? For example:
I have an application named WindowsApplication7.exe. In the app I have a form named Form1. Form1 contains a Panel named pnl1. how can I add pnl1 to a form in another project?? (I hope someone understands this!) Thanks very much for your help.

Adam ErstelleRank #3,005 · 479 reputationPosted Mar 31, 2004, 11:08 AM EST
BenRank #7,080 · 249 reputationPosted Mar 31, 2004, 2:20 PM EST
Adam ErstelleRank #3,005 · 479 reputationPosted Mar 31, 2004, 3:30 PM EST
BenRank #7,080 · 249 reputationPosted Mar 31, 2004, 7:58 PM EST