ProtocolPirate
Programmer
I tried both adding an OpenFileDialog to my form and creating it in my code, but either way when I hit the Open button my background worker thread immediately halts without executing the RunWorkerCompleted method.
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
...
...
AxImaging1.CloseImage(nAcquiredImage)
BackgroundWorker_Scan.ReportProgress(nPageCount)
End While
End If
Catch except As Exception
m_bWorkerRunning = False
MsgBox(MethodBase.GetCurrentMethod.Name & " " & except.Message, vbCritical)
End Try
...
...
...
...
AxImaging1.CloseImage(nAcquiredImage)
BackgroundWorker_Scan.ReportProgress(nPageCount)
End While
End If
[COLOR=red][B][I]m_bWorkerRunning = False[/I][/B][/color]
Catch except As Exception
m_bWorkerRunning = False
MsgBox(MethodBase.GetCurrentMethod.Name & " " & except.Message, vbCritical)
End Try
...
...