Hi, how do u find out if the progress bar is completed ?
I need to run a script as soon as the progress bar has been completed
its ProgressBar1
and once its been completed i want it to do
TextBox1.text = "this is a test"
Thanks for any help
Printable View
Hi, how do u find out if the progress bar is completed ?
I need to run a script as soon as the progress bar has been completed
its ProgressBar1
and once its been completed i want it to do
TextBox1.text = "this is a test"
Thanks for any help
Is this what you're looking for?
Code:Private Delegate Sub UpdateTextDelegate()
Code:Dim t as new Thread(AddressOf ProgressBarCheck)
t.Start()
Code:Private Sub ProgressBarCheck()
Do
Thread.sleep(1000)
If ProgressBar1.Value = ProgressBar1.Maximum Then
Invoke(New UpdateTextDelegate(AddressOf UpdateText))
Exit Do
End If
Loop
End Sub
Private Sub UpdateText()
Textbox1.text = "this is a test"
End Sub