Instructables

Make a web browser in visual basic

Im going to teach you how to make a web browser in Visual Basic 2005.
 
Remove these adsRemove these ads by Signing Up

Step 2: Adding the tools

Picture of Adding the tools
Add a:

Text Box
Web Browser
5 Buttons

in that order.

Step 6: Back button code

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

Step 11: Publishing it

Picture of Publishing it
vb14.jpg
vb15.JPG
Click on build
then click on publish and keep clicking next
like these three pictures Im putting up
1-40 of 52Next »
torned001 year ago
how to set the homepage?

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! :)

torned001 year ago
is it possible to create portable apps in vb2005/2008?
alegaspi11 year ago
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! :)
BTW, can i use this for science fair project? (Don't worry, deadline is far away.) :)
lolcat360 (author)  alegaspi11 year ago
Do you still have time?
Yeah! Don't worry man, I have a lot of time. My parents are letting me do the science fair very early. :P
it is just simple browse by the way how to auto refresh in this browser.............//////
heer_soni2 years ago
Hey ol... need to make some Web based project......kind of a web browser or any other application ....any suggestionss... Can afford working offtrack...../
joynal2 years ago
Hi


i want web browse fixt web....

how can i make.. can u help me?
arikyeo4 years ago
 this is what ive created... will make an 'ible next time(I AM NOT GIVING UP MY SOURCE CODE - HAW-HAW!!!)it's using the office ribbon GUI (dl from componentfactory.com)
Untitled.png
Dude. (Maybe?) I started my own software company based on this Instructable. I made Jphweb Carbon it uses the same principle as yours. Its open-source too. http://carbon.jphweb.tk
Plus mine uses Trident (used here), GeckoFX and Webkit .NET
lolcat360 (author)  jamesjph2 years ago
Cool, I'm going to try it.
BTW, I was only 8 when I made this Instructable. :)
Wow, 8? I'm 12 and I don't know VB! Way to go!
twilliams322 years ago
Many websites redirect you once you go to a homepage. However, these instructions do not bind or otherwise update the textbox to reflect this.
collard415 years ago
can someone upload a finished version. thanks 5* faved
jbrar collard413 years ago
CHECK OUW WWW.FIREDBROWSER.CO.CC
just download this thing called "Mozzila firefox" if you want a finished one. GAWD! if you arnt gonna make one, why the hell bothering to get a simple internet explorer based browser instead of the real thing?
jbrar3 years ago
DOWNLOAD THIS.......................BETTER THAN OTHER
WWW.FIREDBROWSER.CO.CC
PKM5 years ago
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...
lolcat360 (author)  PKM5 years ago
i made a better one. heres a picture
internetbrowser1.jpg
How do you change the name of the program so it doesn't say "Form1" all the time?
PKM lolcat3605 years ago
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.
munchman PKM5 years ago
You can download that. It is called Mozilla Browser control - you can download the DLL somewhere but I can't remember
actually, it's called geckofx.

forum website: geckofx.org
main website: http://code.google.com/p/geckofx/ 
No. There's one available from Mozilla called Mozilla Browser Control. Google it.
lolcat360 (author)  PKM5 years ago
Maybe if you only have firefox then that's what the control will be. If you don't have Internet Explorer, chances are that's now what the web browser will be.
internet explorer is what opens my computer and my documents, and stuff like that, so its pretty much impossible not to have it
PKM lolcat3605 years ago
Sadly I'm pretty sure it doesn't work like that- Visual Basic is a Microsoft product that assumes a Windows environment so will always have Internet Explorer around, even if it's not the default browser. I work with this technology in my job and we have to pay attention to the subtle differences between Internet Explorer and Firefox because some of our older technologies only work with IE. I'm not sure you can get rid of Internet Explorer- it's a core part of Windows that I don't think you can uninstall like other programs. Shame...
lolcat360 (author)  lolcat3605 years ago
I mean "not"
wait so it isnt really a web browser?
sahmad23 years ago
i did mine but when i press play for the first time it says windows browser can not start debugging because it cannot finde a file
NatNoBrains3 years ago
Also, you could:
WebBrowser1.Stop()
any way the web browser could start at the home page?
Yes. In the event Form1_load for your form (it might not be Form1) just place this code "webBrowser1.Home()". BASIC only. in c# put ; on the end. Uses IE Homepage.
Sorry. It's "WebBrowser1.GoHome()"
raeki4 years ago
 This is great and built my first browser :)

however, the actual browser control is outdated and a lot of sites (like ask.com) gives me a "script error" message and I have to close

Anyone know where I can get a newer web control?

I don't see anything in the component factory :(
jamesjph raeki3 years ago
its great i wish it had some upgrades but im running it now its super light and great XD thanks
1-40 of 52Next »
Pro

Get More Out of Instructables

Already have an Account?

close

PDF Downloads
As a Pro member, you will gain access to download any Instructable in the PDF format. You also have the ability to customize your PDF download.

Upgrade to Pro today!