471,350 Members | 1,727 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

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

AxWebBrowser - a monster!

I have had a terrible 10 days period with AxWebBrowser ActiveX Control.
I can't understand why there is no goog documentation and tutorials for
that monster.
Dec 20 '05 #1
12 6774
Don Juan,

It's simply the WebBrowser control, and there is a ton of documentation
on it. Where are you looking? Have you done a search on MSDN for
WebBrowser?

--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Don Juan" <ju*****@hoymail.com> wrote in message
news:do**********@nyytiset.pp.htv.fi...
I have had a terrible 10 days period with AxWebBrowser ActiveX Control.
I can't understand why there is no goog documentation and tutorials for
that monster.

Dec 20 '05 #2
What exactly are you looking for?
"Don Juan" <ju*****@hoymail.com> wrote in message
news:do**********@nyytiset.pp.htv.fi...
I have had a terrible 10 days period with AxWebBrowser ActiveX Control.
I can't understand why there is no goog documentation and tutorials for
that monster.

Dec 20 '05 #3
Dear Nicholas,

I am seeking for help on my AxWebBrowser. Any site give me all the event
and properties provided by AxWebBrowser? One problem I would like to solve
is that how to capture all the item name(e.g. image, paragraph) in the
browser(AxWebBrowser in my windows form), so that I can parse the items into
text form one by one.

THanks.

Jason

"Nicholas Paldino [.NET/C# MVP]" wrote:
Don Juan,

It's simply the WebBrowser control, and there is a ton of documentation
on it. Where are you looking? Have you done a search on MSDN for
WebBrowser?

--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Don Juan" <ju*****@hoymail.com> wrote in message
news:do**********@nyytiset.pp.htv.fi...
I have had a terrible 10 days period with AxWebBrowser ActiveX Control.
I can't understand why there is no goog documentation and tutorials for
that monster.


Jan 30 '06 #4
"JasonChoi" <Ja*******@discussions.microsoft.com> wrote in message
news:DA**********************************@microsof t.com...
Dear Nicholas,

I am seeking for help on my AxWebBrowser. Any site give me all the event
and properties provided by AxWebBrowser? One problem I would like to
solve
is that how to capture all the item name(e.g. image, paragraph) in the
browser(AxWebBrowser in my windows form), so that I can parse the items
into
text form one by one.


You can do this through the MSHTML DOM (Document Object Model). You will
need to set a reference to the Microsoft.mshtml PIA (Primary Interop
Assembly). The DOM is fairly well documented on MSDN.

Tim
Read my tech blog:
http://www.itwriting.com/blog
Jan 30 '06 #5
Dear Tim,

Thanks for your prompt reply. I got a very good starting because of your
guide. It is really what I seek for. I spent a whole day to study the
article related to MSHTML DOM (Document Object Model), I am clear with it.
However, I still find difficulties in doing my thing.

1) I can't find mshtml.dll in my computer, I failed to add this component in
my VB.NET 2003. Where can I get the component?
2) Ariticle taught me how to capture tag name from HTML document by using
javascript, but no article taught how to use VB.NET to capture the document
items.

Could you give me more hints or suggestion? Many thanks.
Jason

"Tim Anderson" wrote:
"JasonChoi" <Ja*******@discussions.microsoft.com> wrote in message
news:DA**********************************@microsof t.com...
Dear Nicholas,

I am seeking for help on my AxWebBrowser. Any site give me all the event
and properties provided by AxWebBrowser? One problem I would like to
solve
is that how to capture all the item name(e.g. image, paragraph) in the
browser(AxWebBrowser in my windows form), so that I can parse the items
into
text form one by one.


You can do this through the MSHTML DOM (Document Object Model). You will
need to set a reference to the Microsoft.mshtml PIA (Primary Interop
Assembly). The DOM is fairly well documented on MSDN.

Tim
Read my tech blog:
http://www.itwriting.com/blog

Jan 30 '06 #6

"JasonChoi" <Ja*******@discussions.microsoft.com> wrote in message
news:EC**********************************@microsof t.com...
Dear Tim,

Thanks for your prompt reply. I got a very good starting because of your
guide. It is really what I seek for. I spent a whole day to study the
article related to MSHTML DOM (Document Object Model), I am clear with
it.
However, I still find difficulties in doing my thing.

1) I can't find mshtml.dll in my computer, I failed to add this component
in
my VB.NET 2003. Where can I get the component?
Add a reference to the COM "Microsoft HTML object library".
2) Ariticle taught me how to capture tag name from HTML document by using
javascript, but no article taught how to use VB.NET to capture the
document
items.


You can cast the Document property of the ActiveX WebBrowser to an object of
type IHTMLDocument2. This gives access to the MSHTML DOM.

Tim
Read my tech blog:
http://www.itwriting.com/blog
Jan 31 '06 #7
Dear Tim,

I still not find the 2003Microsoft HTML object library component in
"Add/Remove Items" --> ".NET Framework Component" tab in my VB.NET 2003. How
can I add it to my platform?

One more question, are you sure MSHTML Object can be programmed with VB.NET?
I find the information related to the object always mentions to use C/C++.

Thanks.
Jason
"Tim Anderson" wrote:

"JasonChoi" <Ja*******@discussions.microsoft.com> wrote in message
news:EC**********************************@microsof t.com...
Dear Tim,

Thanks for your prompt reply. I got a very good starting because of your
guide. It is really what I seek for. I spent a whole day to study the
article related to MSHTML DOM (Document Object Model), I am clear with
it.
However, I still find difficulties in doing my thing.

1) I can't find mshtml.dll in my computer, I failed to add this component
in
my VB.NET 2003. Where can I get the component?


Add a reference to the COM "Microsoft HTML object library".
2) Ariticle taught me how to capture tag name from HTML document by using
javascript, but no article taught how to use VB.NET to capture the
document
items.


You can cast the Document property of the ActiveX WebBrowser to an object of
type IHTMLDocument2. This gives access to the MSHTML DOM.

Tim
Read my tech blog:
http://www.itwriting.com/blog

Jan 31 '06 #8

"JasonChoi" <Ja*******@discussions.microsoft.com> wrote in message
news:BF**********************************@microsof t.com...
Dear Tim,

I still not find the 2003Microsoft HTML object library component in
"Add/Remove Items" --> ".NET Framework Component" tab in my VB.NET 2003.
How
can I add it to my platform?
It is a COM component, so you will find it in the COM tab in the Add
reference dialog. To get the Add Reference dialog, right-click the project
name in the solution explorer and choose Add Reference...
One more question, are you sure MSHTML Object can be programmed with
VB.NET?
I find the information related to the object always mentions to use C/C++.


The documentation is primarily for C/C++ but there is also a "scripting"
API. Through COM interop most of the API can be used though there are some
difficult cases where the interop library doesn't work as it should. I doubt
you will run into these for what you want to do.

There's a C# example of COM interop with MSHTML here:

http://www.itwriting.com/htmleditor/index.php

Tim
Read my tech blog:
http://www.itwriting.com/blog
Feb 1 '06 #9
I've written this wrapper for it, if it's any help to you:

http://www.thecodeproject.com/cs/mis...bBrowserEx.asp

which tries to simplify common tasks that the 1.0/1.1 browser doesn't
provide for.

Feb 1 '06 #10
Thanks for helpful comment, what is the main different between IHTMLDocument2
and IHTMLDocument?

Jason CHoi
"Tim Anderson" wrote:

"JasonChoi" <Ja*******@discussions.microsoft.com> wrote in message
news:EC**********************************@microsof t.com...
Dear Tim,

Thanks for your prompt reply. I got a very good starting because of your
guide. It is really what I seek for. I spent a whole day to study the
article related to MSHTML DOM (Document Object Model), I am clear with
it.
However, I still find difficulties in doing my thing.

1) I can't find mshtml.dll in my computer, I failed to add this component
in
my VB.NET 2003. Where can I get the component?


Add a reference to the COM "Microsoft HTML object library".
2) Ariticle taught me how to capture tag name from HTML document by using
javascript, but no article taught how to use VB.NET to capture the
document
items.


You can cast the Document property of the ActiveX WebBrowser to an object of
type IHTMLDocument2. This gives access to the MSHTML DOM.

Tim
Read my tech blog:
http://www.itwriting.com/blog

Feb 2 '06 #11
IHTMLDocument2 is newer

Feb 6 '06 #12
Thanks you all.
Now, I try to program a navigation by up-arrow and down-arrow key to read
the element on the webpage one by one, but I receive error when I create a
KeyPress event for my AxWebBrowser. Any wrong with me? Any suggestion?
Thanks.

Jason
"JasonChoi" wrote:
Thanks for helpful comment, what is the main different between IHTMLDocument2
and IHTMLDocument?

Jason CHoi
"Tim Anderson" wrote:

"JasonChoi" <Ja*******@discussions.microsoft.com> wrote in message
news:EC**********************************@microsof t.com...
Dear Tim,

Thanks for your prompt reply. I got a very good starting because of your
guide. It is really what I seek for. I spent a whole day to study the
article related to MSHTML DOM (Document Object Model), I am clear with
it.
However, I still find difficulties in doing my thing.

1) I can't find mshtml.dll in my computer, I failed to add this component
in
my VB.NET 2003. Where can I get the component?


Add a reference to the COM "Microsoft HTML object library".
2) Ariticle taught me how to capture tag name from HTML document by using
javascript, but no article taught how to use VB.NET to capture the
document
items.


You can cast the Document property of the ActiveX WebBrowser to an object of
type IHTMLDocument2. This gives access to the MSHTML DOM.

Tim
Read my tech blog:
http://www.itwriting.com/blog

Feb 20 '06 #13

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Lecture Snoddddgrass | last post: by
4 posts views Thread by Martin Ho | last post: by
reply views Thread by Matthias Kwiedor | last post: by
reply views Thread by beau | last post: by
3 posts views Thread by Clint MacDonald | last post: by
7 posts views Thread by Doe | last post: by
6 posts views Thread by Dave Booker | last post: by
reply views Thread by XIAOLAOHU | last post: by

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.