Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Is Microsoft's WebBrowser Object the same as IE ?

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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

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…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

837 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