ProgressBar1.MarqueeAnimationSpeed = 100 ThreadPool.QueueUserWorkItem(AddressOf StartProcess) .... Private Sub StartProcess(ByVal toState As Object) ProcessThread = Thread.CurrentThread .... loDS = loDriver.ConvertData() Invoke(New MethodInvoker(AddressOf DataConvertDone))When I click [STOP]
If Not ProcessThread Is Nothing Then If ProcessThread.IsAlive() Then ProcessThread.Abort() ProgressBar1.MarqueeAnimationSpeed = 0 End If End IfAnd here.. I always got unhandled MESSAGEBOX... And I don't know from where!! this messagebox displays ThreadAbortException text and Ok button.. and title is - my assembly name .. and I try to put TRY/CATCH block before Invoke.... and deep to classes.. nothing help.. always this messagebox appears..