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-19-2011, 04:58 PM #2
Alt
Banned
Thanks bro, I'll try this later! Happy
02-19-2011, 05:03 PM #3
It'll look little more advanced if you use icons for back, forward and search Winky Winky lol
02-19-2011, 05:06 PM #4
gola
OVER 9000!
Originally posted by Jot1011 View Post
It'll look little more advanced if you use icons for back, forward and search Winky Winky lol


Back and Forward are bare minimums if you want to ever actually use it imo, think of how much you use them on your current browser Winky Winky
02-19-2011, 05:07 PM #5
I like it, especially since using these tutorials learns you a few more scripts that you can use to make your own program solo without any help=D
02-19-2011, 05:10 PM #6
gola
OVER 9000!
Originally posted by skitterz View Post
I like it, especially since using these tutorials learns you a few more scripts that you can use to make your own program solo without any help=D


Thanks mate, I've been learning C++, C# and just messing about with Visual Basic in my spare time and thought I'd share some stuff with the rest of NGU Smile

I'm thinking about making a few tutorials for other programs, like youtube bots and various other useful things.

Also, possibly just posting useful scripts/coding/dialogs.
02-19-2011, 05:14 PM #7
Originally posted by GOLAGODA View Post
Thanks mate, I've been learning C++, C# and just messing about with Visual Basic in my spare time and thought I'd share some stuff with the rest of NGU Smile

I'm thinking about making a few tutorials for other programs, like youtube bots and various other useful things.

Also, possibly just posting useful scripts/coding/dialogs.


Exactly what me and my friend are doingClaps
02-19-2011, 05:16 PM #8
Alt
Banned
Originally posted by GOLAGODA View Post
Thanks mate, I've been learning C++, C# and just messing about with Visual Basic in my spare time and thought I'd share some stuff with the rest of NGU Smile

I'm thinking about making a few tutorials for other programs, like youtube bots and various other useful things.

Also, possibly just posting useful scripts/coding/dialogs.


i think you should make some more Tut's Smile
i want to learn C++, ect..

So it would help me alot too, & other people like myself
+rep dude :derp:
02-20-2011, 09:18 AM #9
gola
OVER 9000!
Originally posted by x3 View Post
i think you should make some more Tut's Smile
i want to learn C++, ect..

So it would help me alot too, & other people like myself
+rep dude :derp:


Originally posted by skitterz View Post
Exactly what me and my friend are doingClaps


You must login or register to view this content.

You guys should check this out then, you might be interested Smile
02-20-2011, 10:37 AM #10
x-MaGiiKZz-o
Who’s Jim Erased?
Awesome, nice tutorial, thanks!

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo