An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
Hi MiPakTeh-6272,
You need to get the App_.exe process through the start method firstly, and then pass it to the stop method.
Please refer to the follwing code:
Process process;
private void button1_Click(object sender, EventArgs e)
{
process = startstop.StartStop_.Start(@"D:\Project\source\repos\App_\App_\bin\Debug\App_.exe");
}
private void button2_Click(object sender, EventArgs e)
{
startstop.StartStop_.Stop(process);
}
Best Regards,
Daniel Zhang
If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.