Hello in my main form I am running a command-line exe to do some stuff for me. The only problem is as it is doing the stuff it needs to do my parent form is completely frozen until the process has ended.
Is there any way to run the process while keeping my parent form not frozen so buttons can be clicked, etc? Thank you, I have provided my code below for running the process.
Process newprocess = new Process();
ProcessStartInfo startInfo = new ProcessStartInfo();
startInfo.CreateNoWindow = true;
startInfo.UseShellExecute = false;
startInfo.FileName = @"C:\tool.exe";
startInfo.Arguments = "Some Arguments";
newprocess.StartInfo = startInfo;
newprocess.Start();
newprocess.WaitForExit();