Web Browser Tutorial

This tutorial will show you how to make a web browser. We are really cheating as we are using the internet explorer browser with a different shell over the top. This means that it is incredibly easy.

Making a Web Browser

First we insert the web browser. To do this we right click on the toolbox and click components. Scroll down to 'Microsoft Internet Controls' and check the box next to it. Now press ok.

Insert the web browser object into your form and make it the desired size.

Next we create some command buttons across the top with back refresh etc. on them. Double click on them and type 'WebBrowser1.goback' or 'webbrowser1.refresh'. Choose whatever options you want.

Next create a textbox and another command button with 'Go' (or something similar) on it. Double click the 'Go' button. Type 'webbrowser1.navigate (text1.text)'. You can use this method to create quick link buttons to your favourite sites by replacing text1.text with your URL (remember speech marks).

Now run the program and away you go.

© Jonathan Waller 2005; QuantumState Visual Basic