Post: How to make a simple web browser of your own in Visual Basic! :D
02-19-2011, 04:56 PM #1
gola
OVER 9000!
(adsbygoogle = window.adsbygoogle || []).push({}); First off you are going to need Visual Basic, I suggest Visual Basic Express as it's the smallest file, and it's all you'll probably ever need.

VB Express Download - You must login or register to view this content.

[multipage=Creating the GUI]

Now just remember, this is a tutorial on making a simple and easy web browser, so we're doing the bare minimals for the Graphical User Interface(GUI).

Once you've installed everything, run Visual Basic.

Open a New Project and Go to WindowsformApplication:
You must login or register to view this content.

After you've done that, stretch it out to an appropriate size, a bit like this, bigger if you want:
Click spoilers to see the picture examples Winky Winky
You must login or register to view this content.

Next you're going to want to add the Actual Web Browser area, do this by clicking Toolbox on the sidebar, then opening Common Controls, then double clicking WebBrowser.
Pic of where to find it:
You must login or register to view this content.

After that, you're going to want to add 4 Buttons, these will be used for Going to the URL put into the textbox, Going back one page, Going forward to a page you were previously on, but went back from and refreshing the page.

The Common Controls area, and button is found here:
You must login or register to view this content. Double click that 4 times, and you should have 4 buttons.

After you've got them there, space them out how you want.
Here's an example:
You must login or register to view this content.

Then, add a textbox, this will be where you type what URL you want to go to using the web browser, e.g. You must login or register to view this content.
Found here:
You must login or register to view this content.
Example of how to space it out:
You must login or register to view this content.

Upon doing that, rename your buttons to Back, Forward, Refresh and Go, and do it in that order.

To rename the buttons, click the button once, then in the properties menu, scroll down to text then change whats in there.

Where text and the property menu are:
You must login or register to view this content.

Here's what the GUI should look like after all that.
You must login or register to view this content.

[multipage=Coding]
Now we're up to coding Smile

You can copy and paste these codes in, but if you want to learn more you can manually type them out.

Double click on the form then type this in, replace Browser with whatever you want to show up at the top as the program name:
    Me.Text = "Browser"


Double click on Back then put in:
    WebBrowser1.GoBack()


Double click Forward then put in:
    WebBrowser1.GoForward() 


Double click Refresh then put in:
    WebBrowser1.Refresh()


Double click Go then put in:
    WebBrowser1.Navigate(TextBox1.Text)


[multipage=Finished Product and Conclusion]

And after all that, here's what it should look something like:
You must login or register to view this content.
I just was using the browser for a bit, just looking some stuff up on google........




Thanks for reading, I hope you like this and you can hopefully make a nice simple web browser of your own or just learn some stuff, or make a simple one, and end up learning more elsewhere and making an awesome one Happy. If you need any help, or just want to ask something feel more than welcome to post Smile
(adsbygoogle = window.adsbygoogle || []).push({});

The following 5 users say thank you to gola for this useful post:

Alt, I Got Cookies, skitterz, Wondoh, x-MaGiiKZz-o
02-20-2011, 11:16 AM #11
iNikush
I'm back from the dead
funny how c++ is a combination of c and c#
02-27-2011, 11:42 AM #12
vSaBoTeuR x
< ^ > < ^ >
Everyone knows how to do this. No need in posting it.
02-28-2011, 07:52 PM #13
schnzrs
Do a barrel roll!
Originally posted by XxBlackBeard View Post
funny how c++ is a combination of c and c#

C++ was made with C. C# came way after C++. If anything, C# is a combination of C++ and Java.

---------- Post added at 02:52 PM ---------- Previous post was at 02:47 PM ----------

At the maker of the tutorial: No offense, but this tutorial is nothing special. You using VERY high level GUI functions/methods. Pretty much just filling in a template.

I would be impressed if you actually showed how to get data off of a http connection, parse the HTML (if you could handle JavaScript I would be amazed!), then make a GUI layer.
03-02-2011, 01:54 PM #14
Originally posted by GOLAGODA View Post
First off you are going to need Visual Basic, I suggest Visual Basic Express as it's the smallest file, and it's all you'll probably ever need.

VB Express Download - You must login or register to view this content.

[multipage=Creating the GUI]

Now just remember, this is a tutorial on making a simple and easy web browser, so we're doing the bare minimals for the Graphical User Interface(GUI).

Once you've installed everything, run Visual Basic.

Open a New Project and Go to WindowsformApplication:
You must login or register to view this content.

After you've done that, stretch it out to an appropriate size, a bit like this, bigger if you want:
Click spoilers to see the picture examples Winky Winky
You must login or register to view this content.

Next you're going to want to add the Actual Web Browser area, do this by clicking Toolbox on the sidebar, then opening Common Controls, then double clicking WebBrowser.
Pic of where to find it:
You must login or register to view this content.

After that, you're going to want to add 4 Buttons, these will be used for Going to the URL put into the textbox, Going back one page, Going forward to a page you were previously on, but went back from and refreshing the page.

The Common Controls area, and button is found here:
You must login or register to view this content. Double click that 4 times, and you should have 4 buttons.

After you've got them there, space them out how you want.
Here's an example:
You must login or register to view this content.

Then, add a textbox, this will be where you type what URL you want to go to using the web browser, e.g. You must login or register to view this content.
Found here:
You must login or register to view this content.
Example of how to space it out:
You must login or register to view this content.

Upon doing that, rename your buttons to Back, Forward, Refresh and Go, and do it in that order.

To rename the buttons, click the button once, then in the properties menu, scroll down to text then change whats in there.

Where text and the property menu are:
You must login or register to view this content.

Here's what the GUI should look like after all that.
You must login or register to view this content.

[multipage=Coding]
Now we're up to coding Smile

You can copy and paste these codes in, but if you want to learn more you can manually type them out.

Double click on the form then type this in, replace Browser with whatever you want to show up at the top as the program name:
    Me.Text = "Browser"


Double click on Back then put in:
    WebBrowser1.GoBack()


Double click Forward then put in:
    WebBrowser1.GoForward() 


Double click Refresh then put in:
    WebBrowser1.Refresh()


Double click Go then put in:
    WebBrowser1.Navigate(TextBox1.Text)


[multipage=Finished Product and Conclusion]

And after all that, here's what it should look something like:
You must login or register to view this content.
I just was using the browser for a bit, just looking some stuff up on google........




Thanks for reading, I hope you like this and you can hopefully make a nice simple web browser of your own or just learn some stuff, or make a simple one, and end up learning more elsewhere and making an awesome one Happy. If you need any help, or just want to ask something feel more than welcome to post Smile

I have Put Tabs On Mine

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo