خرید بک لینک

Vote count: 0

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

asked 24 secs ago

برچسب: نویسنده: استخدام کار تاريخ: يکشنبه 6 تير 1395 ساعت: 4:20

صفحه بندی