I have 2 issues which are probably related:
1. My wait cursor does not display
2. My screen is frozen so I cannot click the "Cancel" button to stop the BackgroundWorker thread.
Here is what my code looks like, (I followed the example given at
Dim bkwk As New BackgroundWorker
Public Sub New()
bkwk.WorkerSupportsCancellation = True
AddHandler bkwk.DoWork, AddressOf bw_DoWork
AddHandler bkwk.RunWorkerCompleted, AddressOf bw_RunWorkerCompleted
Private Sub btnPreview_Click(ByVal sender As Object, ByVal e As System.Windows.RoutedEventArgs) Handles btnPreview.Click
If Not bkwk.IsBusy = True Then
Cursor = Cursors.Wait
txtStatus.Text = "Busy ..."
View Complete Post