Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Cannot access browser document under a timer
Message
De
03/04/2012 23:13:52
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Titre:
Cannot access browser document under a timer
Versions des environnements
Environment:
VB 9.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01540221
Message ID:
01540221
Vues:
57
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform