c# InvalidCastException

Posted by krisox on Stack Overflow See other posts from Stack Overflow or by krisox
Published on 2010-06-17T17:33:15Z Indexed on 2010/06/17 18:03 UTC
Read the original article Hit count: 550

Filed under:
|

Hello. I try to use this code :

webBrowser.Document.GetElementById("login").SetAttribute("value", "user");

It work great but not when i use it in a new thread. I get an InvalidCastException. What can I do ?

© Stack Overflow or respective owner

Related posts about c#

Related posts about invalidcastexception