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.