Can I start a process asynchronously?

  • Thread starter Thread starter Sin Jeong-hun
  • Start date Start date
S

Sin Jeong-hun

Many applications need to lanch a web browser to show its homepage to
users. I used
System.Diagnosis.Process.Start("http://www.google.com");
Or I launched other application like
System.Diagnosis.Process.Start("notepad.exe");

But the problems is the application freezes for a couple of seconds
till the application starts. Is there any way to start a process
asynchronously, so that my application wouldn't freeze? Should I create
a new Thread and call Process.Start within it?
 
Yes you can start the process asynchronously.Move the process start in
seperate method.Create a new thread and call the process start method within
it.Start the thread.
 
Back
Top