473,385 Members | 1,523 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,385 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 6885
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Lecture Snoddddgrass | last post by:
Hi, I noticed that my WinForms app was taking a while to start up. I stepped through the code to find out which line was causing the delay. The delay is occurring within one of my UserControls...
4
by: TF | last post by:
hi, i am using AxWebBrowser control in my C# dot.net windows application. i want to display a web page in the browser that needs some data sent to it through HTML Form 'POST' method. I saw a...
4
by: Martin Ho | last post by:
Hey Everyone, I really hope there is someone who can figure out this problem. Honestly, I spent 3 days now trying to find the solution, but nothing works. I'll try to explain the problem...
0
by: Matthias Kwiedor | last post by:
I have a aplication which hosts an axWebbrowser. This activex component needs about 10 to 15 mb of memory. Because i have a option to move the aplication to tray icon and do some timer work i...
0
by: beau | last post by:
Hi, I'm using the AxWebBrowser in a C# WinForms application. I've got the basics working, but need some help controlling the view options for browsing files. How can I disable the...
3
by: Clint MacDonald | last post by:
I have used the AxWebBrowser in a Visual Basic Project... I found that both Framework 1.0 and 1.1 had to be installed for it to work properly. I now have found that in Studio 2003, that the...
3
by: MeNotHome | last post by:
I have been trying to find all the properties and methods documentation on the axwebbrowser control. For example a list of follwing and their results axwebbrowser.document.body.outerhtml...
7
by: Doe | last post by:
Okay, I've given up on using the "new" WebBrowser in 2005 to do what I want to do -- tabbed browsing. It seems I really need RegisterAsBrowser and Application to get each instance of a browser...
6
by: Dave Booker | last post by:
It appears that I cannot correctly install the AxWebBrowser in VS2005. I can instantiate an "AxWebBrowser browser" and refer to its members, properties, and methods. I'm having trouble with the...
1
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: 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...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

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.