I'm getting this error:
The calling thread cannot access this object because a different thread owns it
On this part of code:
Private Sub loginWorker_DoWork(ByVal sender As System.Object, ByVal e As System.ComponentModel.DoWorkEventArgs) Handles loginworker.DoWork
Try
eFunctions._ValiAcc(My.Settings.adress, tbuser.Text, tbuser.Text & tbpwd.Password, eResult)
Catch ex As Exception
MsgBox(ex.Message, MsgBoxStyle.Critical, "Error!")
End Try
End Sub
Can someone help?