Albino Blacksheep » Text Files » Visual Basic Tutorial

 Visual Basic Tutorial by Jeyrad

How To Make A Web Browser In Visual Basic:

Its actually pretty simple to make a web browser if you have all the right codes. This
Tutorial will supply all the codes you need for a basic web browser.

1. open up Visual Basic. For the form that pops up asking what type of
program you want to make, select standard exe.

2 . Right click the tool bar on the left side of the screen. Select
components and scroll down until you get to "Microsoft Internet Controls" and select its
box and click "Ok". There now should be a couple more icons in your toolbar.


3. Select the WebBrowser Control tool and go from the bottom up leaving about
3-4 inches of space left over. There, you have made the base of what the webpages will show
up in.

4. Select the Text tool, and type "Address:" on the left side. Next, take the
TextBox tool and draw a text box acrost from the word you just typed.

Select the CommandButton tool and make a small little button after the address bar. Select the caption option under properties and enter "Go!". Double-Click the command button and a code box should pop up. Type in:

WebBrowser1.Navigate Text1.Text


Now , if you dont want to add all the extra stuff, just the basic web browser, your done. But!
If you want to add some extra stuff continue reading.

6. (extra): Make 3 more command buttons and on them put Refresh, Back, and Forward.

Double Click refresh and add the following line of code:

On error resume next
WebBrowser1.Refresh

Double Click Back and add the following line of code:

On error resume next
WebBrowser1.GoBack

Double Click Forward and add the following line of code:

On error resume next
WebBrowser1.GoForward

CONGRATULATIONS! you have just made an Internet Browser!

-Tutorial by Jeyrad @ red-matter.com