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.
67 Comments
Question 4 months ago on Step 9
Please I have created my own browser but it is not working
3 years 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.
8 years ago on Introduction
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!
Reply 6 years ago
i was is my browser making fast is very in one
Reply 6 years ago
There is no need for semicolon on Visual Basic.
7 years ago
nevermind i figured it out
Reply 6 years ago
click on any button, on right side their property shown, go to the text property and rename button name
7 years ago
nevermind i figured it out
7 years ago
how do I rename t the buttons?
7 years ago
how do I rename t the buttons?
7 years ago
here's mine
8 years ago on Introduction
8 years ago on Introduction
am getting an error that their is an expected end of the statement.
8 years ago on Introduction
am getting an error that their is an expected end of the statement.
8 years ago on Introduction
how would i make a favorites button an dsettings tab and bookmarkbar and allow extentions?
10 years ago on Step 9
how to set the homepage?
Reply 8 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! :)
10 years ago on Step 12
is it possible to create portable apps in vb2005/2008?
10 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! :)
Reply 10 years ago on Step 10
BTW, can i use this for science fair project? (Don't worry, deadline is far away.) :)