Visual Basic.NET
  Home arrow Visual Basic.NET arrow Displaying HTML Content with a Web Browser...
Iron Speed
ASP Free Forums 
.NET  
ASP  
ASP Code  
ASP.NET  
ASP.NET Code  
BrainDump  
C#  
Code Examples  
Database  
Database Code  
IIS  
Microsoft Access  
MS SQL Server  
Visual Basic.NET  
Windows Scripting  
Windows Security  
XML  
ASP Web Hosting  
ASP.NET Web Hosting 
Dedicated Servers 
Download TestComplete 
Windows Web Hosting
 
IBM® developerWorks 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
VISUAL BASIC.NET

Displaying HTML Content with a Web Browser Control in Visual Basic
By: Jayaram Krishnaswamy
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 4 stars4 stars4 stars4 stars4 stars / 16
    2006-05-10

    Table of Contents:
  • Displaying HTML Content with a Web Browser Control in Visual Basic
  • Embedding a web browser control into a Windows form
  • Creating a user interface for testing
  • How to display HTML content generated by a program

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
     
    ADVERTISEMENT

    Free Web 2.0 Code Generator! Generate data entry and reporting .NET Web apps in minutes. Quickly create visually stunning, feature-rich apps that are easy to customize and ready to deploy. Download Now!

    Displaying HTML Content with a Web Browser Control in Visual Basic
    (Page 1 of 4 )

    You've already been using a web browser control without realizing it. This article will explain how to use a web browser control a bit more flexibly than you have up until now.

    Introduction

    Perhaps you don't believe me if I tell you that you are already using a web browser control; in fact, you've been using it for a good many years. The IE.exe that is executed when you open Internet Explorer works through the web browser control.

    The web browser control is a dynamic link library, called shdocvw.dll, hosted by Internet Explorer. The web browser in turn works through another dynamic link library, the mshtml.dll. This directly interacts with ActiveX controls, the script engine, Java applets, and so on that are embedded in HTML pages. Mshtml.dll is the component that takes care of the HTML and DHTML aspects of a web page.

    If all of that sounds impressive, keep in mind that it's only the beginning. This is just a bird's eye-view of a control that contains a lot of functionality and flexibility. Readers are directed  to Microsoft's documentation on this control at MSDN.

    The web browser control normally takes the URL to display the HTML content; if the source is not an URL but some HTML content, it would throw up an exception or error. The object of this tutorial is limited to using this control to display HTML content that does not necessarily have an URL reference.

    More Visual Basic.NET Articles
    More By Jayaram Krishnaswamy


       · Web browser control is a very useful ActiveX control. There is a .NET twin as well...
       · Yikes! I don't know about your researching skills. Check out the following MSDN...
       · Thanks for the comment and drawing my attention to the MSDN article. This article...
     

    VISUAL BASIC.NET ARTICLES

    - Types of Operators in Visual Basic
    - Operators
    - Understanding Custom Events using Visual Bas...
    - Polymorphism using Abstract Classes in Visua...
    - Shadowing using Shadows in Visual Basic.NET ...
    - Overloading and Overriding in Visual Basic.N...
    - More on Controlling Windows Fax Services Usi...
    - Programmatically Controlling Windows Fax Ser...
    - Focusing on Forms and Menus in Visual Basic
    - Manipulating Forms with the Windows Forms Li...
    - Basics of the Windows Forms Library
    - Forms, Controls, and Other Useful Objects
    - Implementing OOP to Develop Database Oriente...
    - Using Themes and Skins for Personalization w...
    - A Deeper Look at Personalization using Visua...




    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway