Hi,
I added an existing project (webcam_Test) to a c# windows application(chat client), i want to oopen the form1 of (webcam_test) from the button click of the (chat client) application
how to open the form1( design page) of an added project from the current project
Loading
Kirtan PatelPosted Oct 22, 2009, 1:48 AM
then in Solution Explorer Right Click Project A and >>> Add Reference >> Project Tab >> select Project and Click ok
then you can call Another Project's Form like below Code
here i m calling Application19 's form in Load Event of Application18 Form1
private void Form1_Load(object sender, EventArgs e)
{
WindowsFormsApplication19.Form1 f1 = new WindowsFormsApplication19.Form1();
f1.Show();
}
check "Do you like this answer" of it helpes you :)
jingePosted Oct 22, 2009, 1:51 AM
If you want to see the form in Design time, just double click the Form node in the solution explorer.
If you want to show the form in runtime, then you can instantiate a new instance of that form, and invoke Show or ShowDialog method of that object to open this form
Let me know if it helps.
naura paxPosted Oct 22, 2009, 1:46 AM
You'll first have to add reference of the new project in your existing project by right clicking on existing window project in solution explorer and selecting add reference.
Then you can just call formName.Show/ShowDialog method, but don't forget to use namespace of new project.