I am trying to change the button text while process runs, and then change text after finishing. The following code does not work; I'm assuming due to it possibly ruing synchronously. Is this achievable?
Protected Sub btnUpdate_Click(sender As Object, e As EventArgs)
btnUpdate.Text = "Updating"
Dim myProcess As Process = System.Diagnostics.Process.Start("path to file")
myProcess.WaitForExit()
btnUpdate.Text = "Update"
myProcess.Close()
End Sub
