Zip Component, Email Component, Encryption Component ActiveX Control for Zip Compression .NET Components for ASP.NET
ActiveX and .NET Components for Zip Compression, Encryption, Email, XML, S/MIME, HTML Email, Character Encoding, Digital Certificates, FTP, and more ASP Email ActiveX Component

Index of Chilkat Blog Posts

June 11, 2007

Display Web Browser in Visual Basic Program

This example has nothing to do with Chilkat, but we get asked the question from time to time: How do you display a web browser in a program? The most common solution is to use Microsoft’s WebBrowser ActiveX to embed Internet Explorer into your application. Here is a simple VB6 project to embed Internet Explorer.

The entire source code for this program is listed here:

Private Sub Form_Load()
    WebBrowser1.Navigate2 "about:blank", navNoReadFromCache
    WebBrowser1.StatusBar = True
End Sub
Private Sub Form_Resize()
    WebBrowser1.Width = Form1.Width - 400
    WebBrowser1.Height = Form1.Height - 1200
End Sub
Private Sub LoadUrlBtn_Click()
    WebBrowser1.Navigate2 UrlTextBox.Text, navNoReadFromCache
End Sub

Here is a screenshot (after "Load URL" has been clicked): Embed Web Browser in Application

Privacy Statement. Copyright 2000-2011 Chilkat Software, Inc. All rights reserved.
Send feedback to

Components for Microsoft Windows XP, 2000, 2003 Server, Vista, Windows 7, and Windows 95/98/NT4.