Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Going at the end of a browser page
Message
De
08/01/2005 23:31:12
 
Information générale
Forum:
ASP.NET
Catégorie:
Formulaires Web
Divers
Thread ID:
00974921
Message ID:
00975474
Vues:
29
>It appears that in the beta version of visual c# 2005 a webbrowser control is added to the winforms controls. You are using the webbrowser activex control.
>
>I have done some (re)search and it appears that if you want use the execScript working (or webbrowser's document DOM in general)you have to get a reference (in your references) to mshtml.dll. You can do this by 1) right-clicking in the solution explorer 2) add Microsoft HTML Object Library in the COM tab.
>
>I have done this, created a simple form with an activex webbrowser and button. It works great for me using the blank.html explained in my previous post, look if you can adjust it to your needs and vb.net:

I have added the COM reference to the project. Then, I do this:
        Log.Document.GetElementById("DivInner").InnerHtml = lcHTMLWebService
        Dim MyDocument As mshtml.HTMLDocument = Log.Document
        MyDocument.parentWindow.execScript("Go()", "JavaScript")
I obtain No such interface supported.
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform