dimanche 10 mai 2015

VB - Do Function Right After Process Ends

Im gonna keep it short.

Clicks on button

1) Sbagen proccess (An open source software) runs at background.
2) Label2.Text = "Running"
3) Sbagen proccess ends automaticly after the job done.
4) Now this is the place i want to edit. I want my software change Label2.Text to "Finished" right after "sbagen" proccess ends. How can i achieve this? Tried endless things.

        Do While p.Count > 0 Or p.Length > 0
        If p.Count = 0 Then
            Label2.Text = "Done!"
            Exit Do
        End If
    Loop

Thanks

Aucun commentaire:

Enregistrer un commentaire