I have little knowledge of visual basic so feel free to reply as if im stupid. Any way i have some how created a simple ping application but need to add a progress bar to reassure users. Could any one help in showing me what code i need to add and where.


VB Code:
  1. Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
  2. If ComboBox.Text = "Hull MPLS" Then
  3. Dim p As New Process
  4. p.StartInfo.FileName = "ping.exe"
  5. p.StartInfo.Arguments = "172.16.0.1"
  6. p.StartInfo.CreateNoWindow = True
  7. p.StartInfo.UseShellExecute = False
  8. p.StartInfo.RedirectStandardOutput = True
  9. p.StartInfo.WindowStyle = ProcessWindowStyle.Hidden
  10. p.Start()
  11. With TextBox
  12. .Text = .Text & p.StandardOutput.ReadToEnd
  13. .SelectionStart = Len(.Text)
  14. .ScrollToCaret()
  15. End With
  16. p.WaitForExit()
  17.  
  18. End If

Thanks

Jason