Would you like to react to this message? Create an account in a few clicks or log in to continue.

TUTORIAL : How to make a web browser in Visual Basic.

2 posters

Go down

TUTORIAL : How to make a web browser in Visual Basic. Empty TUTORIAL : How to make a web browser in Visual Basic.

Post by ale632007 Mon Apr 14, 2008 6:01 pm

TUTORIAL : How to make a web browser in Visual Basic. Vs2008_header


Before everything your supposed to know that Visual Basic is not a programming language. wink

Before making the web browser you must have Visual Basic 2008 or any other versions.
You can get Visual Basic or Studio 2008 Express which is free but after 30 days you have to register to get a key but you don't pay nothing so is a pretty good deal. great

For this tutorial I'll use Visual Studio Professional 2008 so maybe it will be different from the Express but not much so I hope you can find your way to can make it. Before everything you should know is not hard at all! All that is in this thing, is just dragging and drooping objects on the table and typing 3/4 words, I swear is not more then 3/4 words per button in this tutorial. loling

Here we go! Be scared be panicked right now and take a deep breath !!!!!!!!!!!!

1. Open Visual Basic/Studio.
2. Go to File.
3. Then chose New Project.
4. Then chose the icon or template that says Windows Forms Applications.

The Visual Studio screen:
TUTORIAL : How to make a web browser in Visual Basic. Capturecd7.th

The New Project Screen:
TUTORIAL : How to make a web browser in Visual Basic. Capture1fe9.th

Then go to the ToolBox panel if you don't have it then go View>ToolBox.
Then from there you drag onto the screen the following stuff:
1. 6 buttons
2. Web Browser
3. Text Box
Then fell free to arrange them how you want. nice
Here is mine:
TUTORIAL : How to make a web browser in Visual Basic. Capturehi7.th

You have 6 buttons on the stage. Now what you want to do now is to add names to those buttons:
This is what you have to change by pressing on the button:
TUTORIAL : How to make a web browser in Visual Basic. Capture2jy1.th

This is very important!!!!
Button1 will be named "Go!"
Button2 will be named "Refresh"
Button3 will be named "Home"
Button4 will be named "Back"
Button5 will be named "Forward"
Button6 will be named "Stop"

Is very important that those buttons were put in order!!!!

The you press on the web browser component the one you drag onto screen and rename the instance name to input like this:
TUTORIAL : How to make a web browser in Visual Basic. Capture3rt7.th


Then you do the same to the textbox but this time the textbox component will be named "URL"
Ok you should be set, now is the time to add some codes and explain them so again is not hard is very easy so you should know!! cool

Coding Part! Yey!


Doubleclick on the Go! button but before the code check in the properties window to see if is the button1.
After you double click on the button you should be redirected to a page which looks like this:
TUTORIAL : How to make a web browser in Visual Basic. Capture4hr3.th

Then between:
Code:

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
       
    End Sub
Type the following code (is better to type not copy and paste):
Code:
Input.Navigate(URL.Text)
Explanation:
The Input stands for the web browser component, the Navigate stands for searching what is in the URL, the URL stands for the textbox but .Text stands for the real address what you type.

Then go to the Refresh button and type in:
Code:
Input.Refresh()
Explanation:
The input stands for the web browser component and the refresh stands for the reload page function.

Then go to Home button and type in:
Code:
Input.GoHome()
Explanation:
The input stands for the web browser component and the GoHome stands for the loading the page what it was set for default, we are gonna add that later.

Then go to the Stop button and type in:
Code:
Input.Stop
Explanation:
The input stands for the web browser component and Stop stands for the function that stops the loading.

Them go to the Back button and type in:
Code:
Input.GoBack()
Explanation:
The input stands for the web browser and GoBack stands for the function that tells to the browser to go back.

Then go to the Forward button and type in:
Code:
Input.GoForward()
Explanation:
The input stands for the web browser and GoForward stands for the function that tells to the browser to go to the last page viewed.

That's it with the coding part, now we have to set a default page to the web browser and you set it by doing the following things:

1. Press on the web browser component.
2. In the properties panel you search for "Url"
3. Then beside "Url" type "www.google.com" without the quotes.

Your done now press F5 to debug or go to Debugging menu and press start debug.
The debug function stands for testing your program.

Your done! party

Hope it helped and is not confusing! If you stuck on a part just reply by posting and I'll tell you how to go forward! smile

Regards,
ale632007
ale632007
ale632007
ケrojects Admin
ケrojects Admin

Posts : 541
Join date : 2008-02-18
Location : Ontario,Canada

Back to top Go down

TUTORIAL : How to make a web browser in Visual Basic. Empty Re: TUTORIAL : How to make a web browser in Visual Basic.

Post by nickdagamer Wed Apr 16, 2008 9:10 am

cool! i'm doing it right now~
nickdagamer
nickdagamer
ケrojects Admin
ケrojects Admin

Posts : 226
Join date : 2008-02-17

https://nickdagamer.forumakers.com

Back to top Go down

TUTORIAL : How to make a web browser in Visual Basic. Empty Re: TUTORIAL : How to make a web browser in Visual Basic.

Post by ale632007 Wed Apr 16, 2008 10:39 am

cool later i'll make a tut on how to make a paint application
ale632007
ale632007
ケrojects Admin
ケrojects Admin

Posts : 541
Join date : 2008-02-18
Location : Ontario,Canada

Back to top Go down

TUTORIAL : How to make a web browser in Visual Basic. Empty Re: TUTORIAL : How to make a web browser in Visual Basic.

Post by nickdagamer Thu Apr 17, 2008 2:49 pm

so this is what i got with a little playing around! it's pretty basic but hey it looks cool!
functions: remembers the address u previously entered (from IE) and basic browser functions!


TUTORIAL : How to make a web browser in Visual Basic. Webmh8

Download: http://www.sendspace.com/file/29omwo
nickdagamer
nickdagamer
ケrojects Admin
ケrojects Admin

Posts : 226
Join date : 2008-02-17

https://nickdagamer.forumakers.com

Back to top Go down

TUTORIAL : How to make a web browser in Visual Basic. Empty Re: TUTORIAL : How to make a web browser in Visual Basic.

Post by ale632007 Sat Apr 19, 2008 6:51 am

nice job btw i can't seem to find the thing to can resize the browser. loling do you know?
ale632007
ale632007
ケrojects Admin
ケrojects Admin

Posts : 541
Join date : 2008-02-18
Location : Ontario,Canada

Back to top Go down

TUTORIAL : How to make a web browser in Visual Basic. Empty Re: TUTORIAL : How to make a web browser in Visual Basic.

Post by nickdagamer Sat Apr 19, 2008 11:17 am

well u can resize it in mine! jus try playing around with the stuff and u'll find it! i don;t remember how i did it but it's right there!
nickdagamer
nickdagamer
ケrojects Admin
ケrojects Admin

Posts : 226
Join date : 2008-02-17

https://nickdagamer.forumakers.com

Back to top Go down

TUTORIAL : How to make a web browser in Visual Basic. Empty Re: TUTORIAL : How to make a web browser in Visual Basic.

Post by ale632007 Sat Apr 19, 2008 2:36 pm

well i look all over it but i didn't find nothing about resize stuff, oh well i'll look on the internet btw if you remember it pleases tell me btw nice job with the web browser.

OFF TOPIC: How is going with that thing you said your making.
ale632007
ale632007
ケrojects Admin
ケrojects Admin

Posts : 541
Join date : 2008-02-18
Location : Ontario,Canada

Back to top Go down

TUTORIAL : How to make a web browser in Visual Basic. Empty Re: TUTORIAL : How to make a web browser in Visual Basic.

Post by Sponsored content


Sponsored content


Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum