title: progressbar for Process.Start()
body: <p>I tried so many links on this question but couldn't find any help on it. I have this code where i execute a .exe file which retrieves data from a web page and shows the results on my listbox. This takes time and the window freezes, i decided to use BackgoundWorker but all the examples use a loop to update the progress bar where in my case there is no loop, how can i make my progressbar increment? Please help me on this one, here is my code,</p>
  
  <pre><code>        labelstat.Text = "Please wait..";
          // Start the child process.
          Process p = new Process();
  
  
          // Redirect the output stream of the child process.
          p.StartInfo.UseShellExecute = false;
          p.StartInfo.RedirectStandardOutput = true;
          p.StartInfo.WindowStyle = ProcessWindowStyle.Hidden;
          p.StartInfo.CreateNoWindow = true;
          p.StartInfo.FileName = "Out.exe";
  
          p.Start();
          // Do not wait for the child process to exit before
          // reading to the end of its redirected stream.
          // p.WaitForExit();
          // Read the output stream first and then wait.
          string output = p.StandardOutput.ReadToEnd();
          p.WaitForExit();
  
          checkedListBox1.Items.AddRange(output.Split(new string[] { "\r\n" }, StringSplitOptions.RemoveEmptyEntries));
  </code></pre>
  
  <p>I tried putting this on the,</p>
  
  <pre><code>        backgroundWorker_DoWork
  </code></pre>
  
  <p>method, where it does my task in the background but i have no idea how to increment the progressbar according to the process carried out by my code? :( thank you very much..</p>