Quantcast
Channel: Windows Forms General forum
Viewing all articles
Browse latest Browse all 12583

How can i tell the user when a process is start and when a process is finish and make it async so the program will not hang on while the process is running ?

$
0
0

This is code :

This is the code :

private void DirectXInformation()
            {
                Process proc = new Process();
                proc.StartInfo.UseShellExecute = false;
                proc.StartInfo.FileName = "test.bat";
                proc.StartInfo.CreateNoWindow = true;
                proc.Start();
            }




This is working but i cant tell when it start and when it finish.

I want to tell the user when the process is starting for example "Processing..."
And then when the process is finish: "Prcoss finished..."

And to make it async . So the program wont hang while the process is working.


Viewing all articles
Browse latest Browse all 12583

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>