473,320 Members | 1,828 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Browser component in Windows form

I have a browser component placed in my Windows form. I
have a reference to mshtml. All aspects of the browser
(events, navigation, etc.) seem to work fine.

I am creating an instance of the document as such:

HTMLDocument myPage = (HTMLDocument)
axWebBrowser1.Document;
string oldPage = myPage.body.innerHTML;

I am modifying the HTML and then writing it back to
myPage.body.innerHTML.

This works great on my PC and others that have the VS.NET
IDE loaded. On other PC's that only contain the
redistributible framework 1.1, the entire program works
fine except the modification of the HTML as explained
above.

Has anyone experienced a similar problem? Is there some
additional *.dll file I should include? ( I already
include the AxInterop.SHDocVw.dll file).

Perhaps there is a more efficient way to modify the HTML?

Jul 21 '05 #1
2 1455
>Has anyone experienced a similar problem? Is there some
additional *.dll file I should include? ( I already
include the AxInterop.SHDocVw.dll file).


You might also need the Primary Interop Assembly for
microsoft.mshtml.dll - which is installed with VS.NET, I believe.

Marc
================================================== ==============
Marc Scheuner May The Source Be With You!
Bern, Switzerland m.scheuner(at)inova.ch
Jul 21 '05 #2
Thanks Marc, you were correct!

I was including the 'Interop.SHDocVw.dll' and
the 'AxInterop.SHDocVw.dll' but I had not set
the 'microsoft.mshtml.dll' to "Copy Local" in my project.

Chris
-----Original Message-----
Has anyone experienced a similar problem? Is there some
additional *.dll file I should include? ( I already
include the AxInterop.SHDocVw.dll file).
You might also need the Primary Interop Assembly for
microsoft.mshtml.dll - which is installed with VS.NET, I

believe.
Marc
================================================= ======== =======Marc Scheuner May The Source Be With You!Bern, Switzerland m.scheuner(at) inova.ch.

Jul 21 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: TnCoder | last post by:
Hi; I just moved from vb 6.0 to vb.net. I am trying to add MS Calendar control to my toolbox. After the control is added, it is not enabled. Is there dll I have to add? Can anyone who could give...
5
by: Foreman | last post by:
Using ASPFileUpload (http://support.microsoft.com/default.aspx?scid=kb;en-us;299692) and works for IE6 and FireFox but not Safari. Thanks in advance for your assistance.
3
by: Michel H | last post by:
Hello everyone, While it seems simple to me, I just want to have a URL in my windows application that people can click and then launch the URL in the default browser. Same thing with a mailto:...
2
by: Edward Diener | last post by:
How does one specify in a component that a property is a pointer to another component ? How is this different from a property that is actually an embedded component ? Finally how is one notified in...
4
by: genc_ymeri | last post by:
Hi, I needed a web browser component in a C# win form and I realized the I had to use the COM MS web browser (..\shdocvw.dll). Is there any better solution ? Thank you very much in advance,...
0
by: max reason | last post by:
I added the WebBrowser component to my toolbox, then placed one on a form with other .NET components. This much seems to have worked, but I do not understand how to control the sucker from within...
0
by: Nigel | last post by:
I successfully create a .NET Component (Visual Basic .NET) that would print, unfortunately when used within a web browser it appears that .NET security doesn't allow you to run code that interacts...
2
by: AMDRIT | last post by:
Hello everyone, I have created a custom component and one of its properties is a class object with it's own properties. During runtime, I can assign values to the class object properties just...
4
by: Chris Rausch | last post by:
I have a browser component placed in my Windows form. I have a reference to mshtml. All aspects of the browser (events, navigation, etc.) seem to work fine. I am creating an instance of the...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.