Post: [How to] make a web browser in Visual basic
10-22-2008, 12:05 AM #1
Iconnor12
Do a barrel roll!
(adsbygoogle = window.adsbygoogle || []).push({}); ok fist of all open new standard .exe (Windows Form App) as shown in the pic below..

You must login or register to view this content.

after you have done this make your from a little bigger then we can start making
the web browser

when you have your form resized choose the panel from the tool box
after you have the pannel on your form (drag or doubble click) go to properties box in the bottom right hand side and scroll down to dock and select top as shown in the pic below...
You must login or register to view this content.
You must login or register to view this content.


after you have done this your pannel should be located in the top of your form. You then need a webbrowser controll found in the toolbox as shown.After you have done that then add 6 buttons from the toolbox and 1 textbox from the tool box and arrage how you like i decided to lay mine out like this...

You must login or register to view this content.

you can rename the text on the buttons in the properties box under text.

when you are happy with what you have you need to then go to the webbrowser1 and rename it to web you can do this by looking in the properties box for "(name)" and name it "web" do the same for the textbox and call it "URL".

You must login or register to view this content.

after this you can now move onto the code...

the code is very simple here is what you need..

Back buttons script:

web.GoBack ()

Forward buttons script:

web.GoForward ()

Refresh buttons script:

web.Refresh ()

Stop buttons script:

web.Stop ()

Home buttons script:

web.GoHome ()

Go buttons script:

web.Navigate (URL.text)

it should look like this...

You must login or register to view this content.

after this hit the run button and check if it works Happy

the result:

You must login or register to view this content.

and there you go your very own web browser Happy Happy

Web browser tutorial by
Iconnor12

hope you like it you can also resize the browser to full screen

If you would like more tutorials on visual basic then please ask in a post of what you would like

fake Msn tutorial coming soon!
Last edited by Iconnor12 ; 10-22-2008 at 01:22 AM.

The following 2 users say thank you to Iconnor12 for this useful post:

Surikizu

Copyright © 2024, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo