Make a Web Browser in Visual Basic

296,086

38

67

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

  • Battery Powered Contest

    Battery Powered Contest
  • Plywood Challenge

    Plywood Challenge
  • Plastic Contest

    Plastic Contest

67 Discussions

0
eduardoSacahui
eduardoSacahui

9 months 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 3 years ago

i was is my browser making fast is very in one

0
GegZ1
GegZ1

Reply 3 years ago

There is no need for semicolon on Visual Basic.

0
rileyb6
rileyb6

4 years ago

nevermind i figured it out

0
vino1001
vino1001

Reply 4 years ago

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

0
rileyb6
rileyb6

4 years ago

nevermind i figured it out

0
rileyb6
rileyb6

4 years ago

how do I rename t the buttons?

0
rileyb6
rileyb6

4 years ago

how do I rename t the buttons?

0
JamieM56
JamieM56

4 years ago

here's mine

Untitled.png
0
PKM
PKM

12 years ago on Introduction

I would point out that the "WebBrowser" control is effectively an embedded Internet Explorer, so you are really creating a "skin" for the browser rather than creating your own, but that is picking nits- this is a simple but effective project. If only real browsers had controls that minimalist...

0
BraedenAM
BraedenAM

Reply 9 years ago on Introduction

How do you change the name of the program so it doesn't say "Form1" all the time?

0
wc3717
wc3717

Reply 6 years ago on Introduction

You have to click on the form and in the bottem right corner click on text and type in the name and press enter.

0
PKM
PKM

Reply 12 years ago on Introduction

Now, see, if the WebBrowser control was Firefox rather than Internet Explorer I would totally use that- I could do without losing 110 vertical pixels of my pathetically tiny monitor.

0
munchman
munchman

Reply 11 years ago on Introduction

You can download that. It is called Mozilla Browser control - you can download the DLL somewhere but I can't remember

0
arikyeo
arikyeo

Reply 11 years ago on Introduction

actually, it's called geckofx.

forum website: geckofx.org
main website: http://code.google.com/p/geckofx/