Some process output question.

Hi,
I have some VB code that runs process.


Dim srOut As System.IO.StreamReader
Dim srErr As System.IO.StreamReader
Dim p As New Process

p.StartInfo.UseShellExecute = False

p.StartInfo.FileName = ...

p.StartInfo.WindowStyle = ProcessWindowStyle.Hidden
p.StartInfo.CreateNoWindow = True
p.StartInfo.RedirectStandardError = True
p.StartInfo.RedirectStandardOutput = True

p.Start()

srOut = p.StandardOutput
srErr = p.StandardError

TextBox1.Text = srOut.ReadToEnd & vbCrLf & vbCrLf
TextBox1.Text = TextBox1.Text & srErr.ReadToEnd

The question is about output from this process.
In the code above the output is appears all-in-once.
So, if the process takes too much time the textbox will be blank
till those process will be finished. It's not so cool :(.
I'd like to modify code so that the output from a process
will go directly. When the process says "a" then the "a" will go to
the textbox directly.
Please advice.
Thanks in advance.
Regards,
John.
[1225 byte] By [JSmith2007] at [2007-11-20 11:14:54]