Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Going at the end of a browser page
Message
From
08/01/2005 23:31:12
 
General information
Forum:
ASP.NET
Category:
Web forms
Miscellaneous
Thread ID:
00974921
Message ID:
00975474
Views:
30
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform