Hi!
I'm searching how to fix it. I will post if I find it, but if you can help me you are a good guy/girl!
My code:
Of course I have deleted some of the code. When I'm testing my app', exception say: "Cast is not valid" at line "texteR = WebBrowser1.Document.Body.InnerText". I'm not familiar with threading but I'm learning.
I'm searching how to fix it. I will post if I find it, but if you can help me you are a good guy/girl!
My code:
VB.NET:
'I'm calling my thread like this
Dim t As New Threading.Thread(AddressOf check)
t.Start()
'Here my sub check
Friend Sub check()
Try
Do While something = False
texteR = WebBrowser1.Document.Body.InnerText
Loop
Catch exc As Exception
MsgBox(exc.ToString)
End Try
End Sub
Of course I have deleted some of the code. When I'm testing my app', exception say: "Cast is not valid" at line "texteR = WebBrowser1.Document.Body.InnerText". I'm not familiar with threading but I'm learning.