running another project from one project buy a click of a button....
looking and trying so far not successful...any help would be greatly appreciated jmg
On a second form I created a button and want to click the button to run the second prpject...
Below is the second form.
namespace ScreenShotApp
{
public partial class Form2 : Form
{
public Form2()
{
InitializeComponent();
}
private void backtoform1_Click(object sender, EventArgs e)
{
Form1 form1 = new Form1();
form1.Show();
this.Hide();
}
private void label1_Click(object sender, EventArgs e)
{
}
private void button3_Click(object sender, EventArgs e)
{
// This is the button to click to run the other project can't seem to get any answers....Thank You.
}
}
}
Loading
Sam HobbsPosted Jan 22, 2010, 4:49 PM
Assuming you need to execute an application, look at the Process class in the System.Diagnostics Namespace. Use the Process.Start Method to execute the application. There is sample code in the documentation. Please read the documentation and then if you need help with details then ask specific questions.