At this moment there is only interop with IE. I do not believe that you can
change with that before displaying. However you can maybe do that immidiatly
when it is displayed what would probably look the same.
You do not need the axwebbrowser "axshdocvw" but the webbrowser "shdocvw"
and when you instance the object keep in mind to instance it with the
parameter IE.
(In 2005 the webbrowser will be a part of NET 2.0, I don't know if that is
as well an integration for IE)
There is few documentation when it is about IE and not everything will work
as you think it is documented, because it is not always clear what is (for
me) about axshdocvw and what is about shdocvw, therefore probably a hard way
to go.
If you host IE you can catch the OnBeforeNavigate event. I suppose you could
then cancel IE's navigation, grab the HTML by a seperate routine, modify the
HTML and then push it into the browser? It would be a fair amount of work.
Cor,
Thanks for your reply, but I am a little confused.
First of all, I need to add the control. In the
'Customize Toolbox' window there are two types
of objects:
..net framework objects and
com objects
Now, in the .net framework objects I can find
Web Client
Web Control
Web Service
In the COM objects I find
Microsoft Web Browser.
Did you mean the Microsoft Web Browser?
It comes from shdocvw.dll, but this *is*
AxWebBrowser1 AxSHDocVw.AxWebBrowser
i.e. this is what you see in the properties window
when you select the control.
I made this sample for you, it is very simple however should give you the
right direction in my opinion.
\\\
'Add from Project menu a reference from
'COM Microsoft Internet Controls
Public Class testIE
Public Shared Sub main()
Dim a As New SHDocVw.InternetExplorer
a.Visible = True
a.Navigate2("http://msdn.microsoft.com/")
End Sub
End Class
///
I hope this helps a little bit?
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.