Private Sub p_OutputDataReceived(ByVal sender As Object, ByVal e As System.Diagnostics.DataReceivedEventArgs) Handles p.OutputDataReceived
Try
If String.IsNullOrEmpty(e.Data) = False Then
TextBox2.Dispatcher.Invoke(Windows.Threading.DispatcherPriority.Normal, _
New Action(Function() TextBox2.Text = TextBox2.Text & vbCrLf & e.Data))
End If
Catch ex As Exception
MsgBox(ex.Message)
End Try
End Sub
'p' is a System.Diagnostic.Process
I debuged it and it calls TextBox2.Dispatcher.Invoke(...) yet TextBox2.Text does not change.
Bill Gates look out!