I have a process that's taking long time and the window freezes until the operation finishes. Here's my code:

button function
VB.NET Code:
  1. ...
  2. proc = new Process
  3. {
  4.     StartInfo = new ProcessStartInfo
  5.     {
  6.         FileName = "install.bat",
  7.         // Arguments = "command line arguments to your executable",
  8.         UseShellExecute = false,
  9.         RedirectStandardOutput = true,
  10.         CreateNoWindow = true
  11.     }
  12. };
  13. proc.Start();
  14. while (!proc.StandardOutput.EndOfStream)
  15. {
  16.     string line = await proc.StandardOutput.ReadLineAsync();
  17.     // do something with line
  18.     info_lbl.Text = line;
  19. }
  20. ...

Here ReadLineAsync is underlined with red line and telling me I can't use ReadLineAsync.