Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Cannot load more than two IE instances
Message
 
À
25/04/2015 15:28:50
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Versions des environnements
Environment:
VB 9.0
OS:
Windows 8.1
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01611875
Message ID:
01619140
Vues:
26
You should check for ReadyState == 4 which tells you when the DOM has completed loading.

+++ Rick ---

>I adjusted for this to resolve the issue.
>
>
>        Dim loHTMLDocument As mshtml.HTMLDocument = Nothing
>        Dim loInternetExplorer As SHDocVw.InternetExplorer = Nothing
>
>        loInternetExplorer = New SHDocVw.InternetExplorer
>        loInternetExplorer.Visible = True
>        loInternetExplorer.Navigate("MyUrl")
>        apiShowWindow(loInternetExplorer.HWND, SW_MAXIMIZE)
>        Do While (loInternetExplorer.Busy)
>            System.Threading.Thread.Sleep(100)
>        Loop
>        loHTMLDocument = loInternetExplorer.Document
>        loHTMLDocument.getElementById("Username").Value = "MyUsername"
>        loHTMLDocument.getElementById("Password").Value = "MyPassword"
>        loHTMLDocument.getElementById("Form1").submit()
>
>
>
>For now, it seems I have to get mshtml.
+++ Rick ---

West Wind Technologies
Maui, Hawaii

west-wind.com/
West Wind Message Board
Rick's Web Log
Markdown Monster
---
Making waves on the Web

Where do you want to surf today?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform