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