How to make a Web Browser [VB][08-10]

Iceninjas1

Member
Reputation
0
1- Adding components:

Go to "Project" on the top menu, and choose "Components" or click CTRL-T, then check "Microsoft html object library" and "Microsoft internet controls" and "Microsoft Windows common Controls 5.0".

You will see that new objects are appearing in the left box of your menu, now choose the webbrowser icon which looks like an earth and add it to your form, and make its size as you want, (its name is WebBrowser1 in this tutorial)

Also click on the "Progress bar" component and add it to your form.

2- Adding buttons and objects:

Now add the "6" essential command buttons to your form, and name them as the following: "Back","Forward","Stop","Refresh","Home" and "GO", Now add 1 combo box which the user will enter the web address on it.

3- Coding your application:

First click on the "GO" button and write this code inside it:
VB Code:
WebBrowser1.Navigate Combo1

Now We will code the other buttons as the following:

Back button:
WebBrowser1.GoBack

Forward button:
WebBrowser1.GoForward

Stop button:
WebBrowser1.Stop

Refresh button:
WebBrowser1.Refresh

Home button:
WebBrowser1.GoHome

NOW YOU CAN TRY USING YOUR NEW WEB BROWSER.
 
1- Adding components:

Go to "Project" on the top menu, and choose "Components" or click CTRL-T, then check "Microsoft html object library" and "Microsoft internet controls" and "Microsoft Windows common Controls 5.0".

You will see that new objects are appearing in the left box of your menu, now choose the webbrowser icon which looks like an earth and add it to your form, and make its size as you want, (its name is WebBrowser1 in this tutorial)

Also click on the "Progress bar" component and add it to your form.

2- Adding buttons and objects:

Now add the "6" essential command buttons to your form, and name them as the following: "Back","Forward","Stop","Refresh","Home" and "GO", Now add 1 combo box which the user will enter the web address on it.

3- Coding your application:

First click on the "GO" button and write this code inside it:
VB Code:
WebBrowser1.Navigate Combo1

Now We will code the other buttons as the following:

Back button:
WebBrowser1.GoBack

Forward button:
WebBrowser1.GoForward

Stop button:
WebBrowser1.Stop

Refresh button:
WebBrowser1.Refresh

Home button:
WebBrowser1.GoHome

NOW YOU CAN TRY USING YOUR NEW WEB BROWSER.
 
Iceninjas1 said:
1- Adding components:

Go to "Project" on the top menu, and choose "Components" or click CTRL-T, then check "Microsoft html object library" and "Microsoft internet controls" and "Microsoft Windows common Controls 5.0".

You will see that new objects are appearing in the left box of your menu, now choose the webbrowser icon which looks like an earth and add it to your form, and make its size as you want, (its name is WebBrowser1 in this tutorial)

Also click on the "Progress bar" component and add it to your form.

2- Adding buttons and objects:

Now add the "6" essential command buttons to your form, and name them as the following: "Back","Forward","Stop","Refresh","Home" and "GO", Now add 1 combo box which the user will enter the web address on it.

3- Coding your application:

First click on the "GO" button and write this code inside it:
VB Code:
WebBrowser1.Navigate Combo1

Now We will code the other buttons as the following:

Back button:
WebBrowser1.GoBack

Forward button:
WebBrowser1.GoForward

Stop button:
WebBrowser1.Stop

Refresh button:
WebBrowser1.Refresh

Home button:
WebBrowser1.GoHome

NOW YOU CAN TRY USING YOUR NEW WEB BROWSER.

I want to ask how you know these things.
 
Iceninjas1 said:
1- Adding components:

Go to "Project" on the top menu, and choose "Components" or click CTRL-T, then check "Microsoft html object library" and "Microsoft internet controls" and "Microsoft Windows common Controls 5.0".

You will see that new objects are appearing in the left box of your menu, now choose the webbrowser icon which looks like an earth and add it to your form, and make its size as you want, (its name is WebBrowser1 in this tutorial)

Also click on the "Progress bar" component and add it to your form.

2- Adding buttons and objects:

Now add the "6" essential command buttons to your form, and name them as the following: "Back","Forward","Stop","Refresh","Home" and "GO", Now add 1 combo box which the user will enter the web address on it.

3- Coding your application:

First click on the "GO" button and write this code inside it:
VB Code:
WebBrowser1.Navigate Combo1

Now We will code the other buttons as the following:

Back button:
WebBrowser1.GoBack

Forward button:
WebBrowser1.GoForward

Stop button:
WebBrowser1.Stop

Refresh button:
WebBrowser1.Refresh

Home button:
WebBrowser1.GoHome

NOW YOU CAN TRY USING YOUR NEW WEB BROWSER.

I want to ask how you know these things.
 
Its the basics. You learn it by just experience.
 
Iceninjas1 said:
1- Adding components:

Go to "Project" on the top menu, and choose "Components" or click CTRL-T, then check "Microsoft html object library" and "Microsoft internet controls" and "Microsoft Windows common Controls 5.0".

You will see that new objects are appearing in the left box of your menu, now choose the webbrowser icon which looks like an earth and add it to your form, and make its size as you want, (its name is WebBrowser1 in this tutorial)

Also click on the "Progress bar" component and add it to your form.

2- Adding buttons and objects:

Now add the "6" essential command buttons to your form, and name them as the following: "Back","Forward","Stop","Refresh","Home" and "GO", Now add 1 combo box which the user will enter the web address on it.

3- Coding your application:

First click on the "GO" button and write this code inside it:
VB Code:
WebBrowser1.Navigate Combo1

Now We will code the other buttons as the following:

Back button:
WebBrowser1.GoBack

Forward button:
WebBrowser1.GoForward

Stop button:
WebBrowser1.Stop

Refresh button:
WebBrowser1.Refresh

Home button:
WebBrowser1.GoHome

NOW YOU CAN TRY USING YOUR NEW WEB BROWSER.

i think it is your own creation
very good
 
Back
Top