Have your Ping function take the status textbox as a parameter. Then you modify the textbox in your ping function.