Visual Basic Code of the Week (COTW)
Issue #117
Online Version at (paid subscribers only)
All content and source code is Copyright (c) 2000 by C&D Programming Corp. No part of this issue can be reprinted or distributed in any manner without express written permission of C&D Programming Corp.

Issue topic: Creating your own web browser

Earn REAL money surfing the web!

If you would like to make some extra cash for surfing the web, jump to


In this Issue

In this issue we discuss how create your own custom web browser.

Using this form as a base you can expand it to include features such as history lists, custom bookmarks, limited intranet browser (restricts the user to certain sites) and more features that you wish Microsoft included in their browser interface, but did not. It can also be used to include a browser interface in your application for display reports, help screens and other formatted text.

If you have any questions about using this module, let us know at


This form module encapsulates the web browsing feature of Internet Explorer in about 20-30 lines of source code. This is one of the best examples of the power of component programming. It uses the Microsoft Internet Controls which creates a WebBrowser object in your Visual Basic environment. You can get complete details of the WebBrowser object model at

You can download the complete project from


Private Sub cmdGo_Click()

This method is where everything starts. cmdGo_Click calls the Navigate method of the WebBrowser control. This starts the process of downloading the appropriate files to display the pages in the browser window.

Sample Usage

See below Source Code.

No sample code in this issue.  See below for details.

Source Code

To see the source code for this issue you must be a subscriber to Code of the Week. If you are a subscriber the source code is available at the following address:

This document is available on the web

Paid subscribers can view this issue in HTML format. There is no additional source or information in the HTML formatted document. It just looks a little better since we have included some HTML formatting. Just point your browser to link at the top of this document.

Get paid to surf the web!

If you would like to get paid for surfing the web, jump to

Other links

Contact Information

C&D Programming Corp.
PO Box 20128
Floral Park, NY 11002-0128
Phone or Fax: (212) 504-7945