Make a Web Browser in Visual Basic

299,902

39

66

Introduction: Make a Web Browser in Visual Basic

Im going to teach you how to make a web browser in Visual Basic 2005.

Step 1: Starting

Open Visual Basic and start a new Windows Application.

Step 2: Adding the Tools

Add a:

Text Box
Web Browser
5 Buttons

in that order.

Step 3: Arranging the Pieces Right

Arrange them like this and rename them like I did.

Step 4: Now for the Code

Double click on the form and type in:
Me.Text = "Web Browser"
like this:

Step 5: GO Button Code

double click on the Go button and type in:
WebBrowser1.Navigate(TextBox1.Text)

Step 6: Back Button Code

Click (actually double click) on the back button and type in:
WebBrowser1.GoBack()
like this

Step 7: Forward Button Code

Double click on the forward button and type in:
WebBrowser1.GoForward()
like this

Step 8: REFRESH Code

double click on the refresh button and type in:
WebBrowser1.Refresh()
like this

Step 9: HOME Button

Double click on the home button and type:
WebBrowser1.GoHome()
like this

Step 10: Try It Out

Click on the Debug button

Step 11: Publishing It

Click on build
then click on publish and keep clicking next
like these three pictures Im putting up

Step 12: You're Finished!

you've finally created a web browser! now give yourself a hand and go sell it online or something.

5 People Made This Project!

Recommendations

  • Paint Challenge

    Paint Challenge
  • Edible Art Challenge

    Edible Art Challenge
  • Laser Challenge

    Laser Challenge

66 Comments

0
eduardoSacahui
eduardoSacahui

1 year ago

I am more interseted in the part that says "go and sell it" then I realized this was 15 years ago. haha, thanks for posting.

A problem many of you may have with an expected end of statement is that you need a semicolon to end the statement. So instead of

"WebBrowser1.Refresh()"

you would have to type

"WebBrowser1.Refresh();"

Other than that this was a great tutorial!

0
AnilY23
AnilY23

Reply 4 years ago

i was is my browser making fast is very in one

0
GegZ1
GegZ1

Reply 4 years ago

There is no need for semicolon on Visual Basic.

0
rileyb6
rileyb6

5 years ago

nevermind i figured it out

0
vino1001
vino1001

Reply 5 years ago

click on any button, on right side their property shown, go to the text property and rename button name

0
rileyb6
rileyb6

5 years ago

nevermind i figured it out

0
rileyb6
rileyb6

5 years ago

how do I rename t the buttons?

0
rileyb6
rileyb6

5 years ago

how do I rename t the buttons?

0
JamieM56
JamieM56

5 years ago

here's mine

Untitled.png
0
ksoza
ksoza

7 years ago on Introduction

how would i make a favorites button an dsettings tab and bookmarkbar and allow extentions?

0
torned00
torned00

8 years ago on Step 9

how to set the homepage?

0
rpetersons
rpetersons

Reply 7 years ago on Introduction

Hi,

Just add this line to Home button:

" WebBrowser1.Navigate("http://www.libraryofarticles.com") " (without quotas and choose any website you like) :)

and line "WebBrowser1.GoHome()" you can delete or add « ' » before line, like this:

" 'WebBrowser1.GoHome() ". This line now should be green.

But mainly, if there is not this code line in «Home» button, it will open your default home page you have set on your windows internet options. :)

Hope it works for you!

Peace! :)

0
torned00
torned00

8 years ago on Step 12

is it possible to create portable apps in vb2005/2008?

0
alegaspi1
alegaspi1

8 years ago on Step 10

Okay, This Instructable is pretty awesome. You see, I was gonna use this for my science fair. (:D) I was wondering, do you know how to put a print and stop button? How to add bookmarks and Bookmarks Bar? how to put an icon for when it loads a site? and a loading bar? How to change the home site? How to fix the "script error" message? Please Message me! :)

0
alegaspi1
alegaspi1

Reply 8 years ago on Step 10

BTW, can i use this for science fair project? (Don't worry, deadline is far away.) :)