Solved

Is Microsoft's WebBrowser Object the same as IE ?

Posted on 2004-08-20
1
253 Views
Last Modified: 2010-04-23
Hi there,

In VB.NET, is Microsoft's WebBrowser Object the same as IE ?  

The object is listed as type "AxSHDocVw.AxWebBrowser".

In this article from VB5 http://www.microsoft.com/mind/0898/dom.aspunder the section Accessing the Document Object Model second bullet point  states that it is.  I know it might be old info.  That's why I'm asking.

I would like to know if that object has the same functionality as IE in processing things like cookies, https, etc.  Will it do anything that IE can do ?  Or are there things that it cannot do that IE will ?  I cannot imagine it being the other way around where the web browser object can do more than IE.

Can anyone explain the differences between IE and this object (or point me in the right direction) ?

Thanks,

John
0
Comment
Question by:trzesniakj
1 Comment
 
LVL 4

Accepted Solution

by:
Daniellus83 earned 500 total points
ID: 11854093

The AxSHDocVw.AxWebBrowser where you are talking about is an object wich is not so all-having as IE explorer. You can use it 2 ways:

1) Many people use this object (library) to make e.g. Toolbars (like the Google toolbar) to communicate with the browser (their host) . Thats why you can say this should be on the level of settings etc the same. You can instruct the browser to navigate or catch event (like NavigateComplete) etc.

2) The other one (you mention) is the browser function inside a window.forms application. This is not exactly like explorer. You mentioned:


* Cookies: they are member of the System.Net.HttpWebRequest Class. So if you want to have cookies etc. You have to do a little programming yourself...

---(a search in the Object browser of VS.Net 2003 gives:)-----------------------------------------

     Public NotInheritable Class Cookie
          Inherits System.Object
     Member of: System.Net

     Summary: Provides a set of properties and methods used to manage cookies.  
-----------------------------------------------------------------------------------------------------------

* HTTPS: This is also not included in the Webbrowser Component.

To handle https, you need also use the System.Net for certificates:  System.Net.ServicePoint(Manager).


You see these 2 think you mentioned are not part of the IE browser component. But thats not stupid: these items aren't used by IE only... So you are right on  the point that IE does more, but it will be possible to program something like IE. I don't think you will not be able to something IE can; But it would take more coding to build something like it than just using the component!


Hope this has informed you enough. Succes on you project if you have one.

Daniël
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

1.0 - Introduction Converting Visual Basic 6.0 (VB6) to Visual Basic 2008+ (VB.NET). If ever there was a subject full of murkiness and bad decisions, it is this one!   The first problem seems to be that people considering this task of converting…
It’s quite interesting for me as I worked with Excel using vb.net for some time. Here are some topics which I know want to share with others whom this might help. First of all if you are working with Excel then you need to Download the Following …
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

757 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

26 Experts available now in Live!

Get 1:1 Help Now