VB Code:
  1. Dim P As Process = New Process
  2.         P.StartInfo.FileName = "CMD.EXE"
  3.         P.StartInfo.Arguments = "/c NETSTAT -N"
  4.         P.StartInfo.CreateNoWindow = true
  5.         P.StartInfo.WindowStyle = ProcessWindowStyle.hidden
  6.         P.StartInfo.RedirectStandardError = True
  7.         P.Start()
  8.         TextBox1.Text = P.StandardOutput.ReadToEnd.ToString

I did try system.diagnostic.process.start(p), but that did not work.

I want the Output(ipaddress) to be in a Textbox, not written to a Stream, but as there are no properties like messageoutput, what do I do?