I have a form with the System.Windows.Forms.WebBrowser control in it. In it, I load a document. I can see it. The name of the control is Log. So, I can do this:
Log.Document.GetElementById("DivInner").InnerHtml = "Test"
So, this will indicate Test in a DIV tag in the document I loaded into the Log control.
However, if I start a timer, this line will no longer works. It seems we are not able to access to the Document property of a WebBrowser control if a timer is running. The message I get is: "Specified cast is not valid".
Anyone has seen that one before?