I call another form exe file into my main form but i did not want to show up it need to be visible. then i need to close the exe file when clicking the button .
i call my another form exe use of the code
ProcessStartInfo startInfo = new ProcessStartInfo();
startInfo.FileName = "C:\\Users\\server.exe";
Process.Start(startInfo);
please help me how it run visible?
the when i need to close that exe i use
Process.Kill();
An object reference is required for the non-static field, method, or property 'Process.Kill()'
I get this error.
help me how to open another exe as visible? and how to close it when button click?