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:
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click If ComboBox.Text = "Hull MPLS" Then Dim p As New Process p.StartInfo.FileName = "ping.exe" p.StartInfo.Arguments = "172.16.0.1" p.StartInfo.CreateNoWindow = True p.StartInfo.UseShellExecute = False p.StartInfo.RedirectStandardOutput = True p.StartInfo.WindowStyle = ProcessWindowStyle.Hidden p.Start() With TextBox .Text = .Text & p.StandardOutput.ReadToEnd .SelectionStart = Len(.Text) .ScrollToCaret() End With p.WaitForExit() End If
Thanks
Jason




Reply With Quote