Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

.NET 

[Your first VB2008 Program] Web browser [With codes & Screen shots]

Here is a simple tutorial with screen shots showing you how to make a simple
web browser in visual basic 2008.

You will need these items, and place them like they are in the screen shot.

1 text box, 1 Home button, 1 Go back button, 1 Go forward button, Refresh button, 1 Stop button, 1 Menustrip (For shortcuts), 1 Go button.


[IMG]http://i28.[censored].com/28uhiqs.jpg[/IMG]

Now the stop, refresh, go, back, forward, home, will all be picture boxes.
(They will not have line around them when the project is built)

Now add the code
Pictures boxes...Just double click on them so it will be picturebox_click

[IMG]http://i28.[censored].com/2nkhr2r.jpg[/IMG]

Now lets add the code for our shortcuts.
Just double click on each option on your menu strip as seen below.

[IMG]http://i28.[censored].com/290u7if.jpg[/IMG]



If you would like to make it go to a website (such as your own) on start up
Under Form1_Load put
Code
Webbrowser1.Navigate "www.Yourwebsite.com"


Here is the full code.

MenuStrip - Options - Exit
Code
Me.close

MenuStrip - Shortcuts - Google.com
Code
Webbrowser1.Navigate "www.google.com"

MenuStrip - Shortcuts - Myspace.com
Code
Webbrowser1.Navigate "www.myspace.com"

MenuStrip - Shortcuts - Youtube.com
Code
Webbrowser1.Navigate "www.youtube.com"

MenuStrip - Shortcuts - Hackforums.net
Code
Webbrowser1.Navigate "hackforums.net"

MenuStrip - Shortcuts - Wikipedia.org
Code
Webbrowser1.Navigate "www.wikipedia.org"

Picturebox - Back Button
Code
Webbrowser1.Goback

Picturebox - Forward Button
Code
Webbrowser1.Goforward

Picturebox - Refresh Button
Code
Webbrowser1.Refresh

Picturebox - Stop Button
Code
Webbrowser1.Stop

Picturebox - Home Buttom
Code
Webbrowser1.Gohome

Picturebox - Go Button
Code
Webbrowser1.Navigate (Textbox1.Text)

That it...A simple basic web browser in Visual Basic 2008 (VB .NET).
wow thanks guy, have u more good tutorial for vb? 🤗
Yes, Here's some by me.

https://hackforums.net/showthread.php?tid=118833
https://hackforums.net/showthread.php?tid=118399
https://hackforums.net/showthread.php?tid=118406
https://hackforums.net/showthread.php?tid=118413
https://hackforums.net/showthread.php?tid=115980

Here's some good codes by
H1N1
https://hackforums.net/showthread.php?tid=110400
Thanks for this tut, but it is very un needed with vb.net not only because of vb2k8's auto fill but also because their are already a mass of tutorials like and even better than this one....

Sorry to sound negative but their are so many browser tuts with nothing extra.
Oh well, I will make an advanced web browser tutorial, Just for you, Check back in a day or 2. :)
Where are the:home,fron.back,....buttons...?
My buttons are the pictures.

[IMG]http://i29.[censored].com/2dkilc8.jpg[/IMG]

After you make this, Try making this, It's better. :)

https://hackforums.net/showthread.php?tid=121434
(Aug 16, 2009 02:50 AM)BETAhkr Wrote:  My buttons are the pictures.

[IMG]http://i29.[censored].com/2dkilc8.jpg[/IMG]

After you make this, Try making this, It's better. :)

https://hackforums.net/showthread.php?tid=121434

I mean where are these buttons at the tool box?Or you put basic buttons and costumize them?🤦‍♂
maybe make a tab web browser :D
This is for a beginner huso, That's why I gave him the link so when hes ready
He can make a different web browser.

Anyway...

These buttons can be whatever you want, I used a picture box and double clicked
on the picture so if you click on the picture it does the function, Some
people use command buttons.
one question please,okay

how do i make my web browser compatible with flash. so i can watch youtube videos etc.

thanks

lol By the way You Forgot to add the WebBrowser Component on The Form.

nice tut.
No I didn't, Mine is as the size as the form and white like the background of my form.
I added a box and buttons, I didn't forget anything. :)
I finished it, thank you for helping me :)
No problem, You can always try this more advanced web browser
I suggest it to anyone.

https://hackforums.net/showthread.php?tid=121434


Possibly Related Threads...
Thread / Author Replies Views Last Post
[.NET] by AEDEADNov 30, 2014 02:26 PM 12 647 Nov 30, 2014 02:26 PM
Last Post: Dredd
[Shell] by 'Chief.Oct 26, 2014 08:06 AM 5 179 Oct 26, 2014 08:06 AM
Last Post: 'Snorlax
[.NET] by infomihoMar 17, 2014 02:05 AM 89 3,413 Mar 17, 2014 02:05 AM
Last Post: programtesting28