Solved

Is Microsoft's WebBrowser Object the same as IE ?

Posted on 2004-08-20
1
256 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Creating an analog clock UserControl seems fairly straight forward.  It is, after all, essentially just a circle with several lines in it!  Two common approaches for rendering an analog clock typically involve either manually calculating points with…
The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (http://www.ecb.europa.eu/stats/exch…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
Both in life and business – not all partnerships are created equal. As the demand for cloud services increases, so do the number of self-proclaimed cloud partners. Asking the right questions up front in the partnership, will enable both parties …

911 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

20 Experts available now in Live!

Get 1:1 Help Now