![]() ![]() One of the usercontrols reads and displays a file, and I cannot get the backgroundworker to complete correctly. main form has a panel that can display various usercontrols. Private Sub bgwLongTask_RunWorkerCompleted(ByVal sender As _ PrgPercentComplete.Value = e.ProgressPercentage Private Sub bgwLongTask_ProgressChanged(ByVal sender As _ If (bgwLongTask.CancellationPending) Then Private Sub bgwLongTask_DoWork(ByVal sender As _ Private Sub btnGo_Click(ByVal sender As System.Object, _īyVal e As System.EventArgs) Handles btnGo.Click ' Use the BackgroundWorker to perform a long task. Refer to the previous list as you look through the following code to see what each piece is supposed to do. The code for this example is relatively straightforward. The e.Cancelled property tells whether the worker finished or was stopped. ![]() The UI thread can take action to clean up here.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |