Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Cannot access browser document under a timer
Message
From
03/04/2012 23:13:52
 
 
To
All
General information
Forum:
ASP.NET
Category:
Other
Title:
Cannot access browser document under a timer
Environment versions
Environment:
VB 9.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01540221
Message ID:
01540221
Views:
56
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?
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Next
Reply
Map
View

Click here to load this message in the networking platform