Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Create a simplistic webbrowser
#1
Create a Web browser with VB

Materials :

1 Toolstrip + ToolStrip Controls, 1 WebBrowser.




1)

drag a toolstrip from the toolbox onto the form. Make sure that the Grip Visibility is set to Hidden.

[Image: 28kukqv.png]

2)
Time to add the controls!

Needed:
6 ToolStripButtons, 1 ToolStripLabel, and 1 ToolStripTextBox
Naming the buttons

Name the first button "Back"

Name the second button "forward"

Name the third "refresh"

Name the fourth "stop"

Name the fifth "home"

And finally name the last "GO".


The go button alignment property must be set to "right".

We can now set "DisplayStyle" to "Image".
Set the images you want for the buttons.

Now we must move on and label and the textbox on the toolstrip.

For the "Label" change the "text property" to
Code:
URL
and the name to urlLabel.

Now the textbox will be named url and the text leave empty.


3)

Next drag the WebBrowser Control onto the form.

[Image: 11c9vti.png]


Set the name property of the webbrowser to
Code:
webBrowser


4)

Now for the actual coding part.

Double-Click on the Form and enter this code:
Code:
webBrowser.GoHome().
Double-Click on the Back Button and enter this code:
Code:
webBrowser.GoBack().
Double-Click on the Forward Button and enter this code:
Code:
webBrowser.GoForward().
Double-Click on the Refresh Button and enter this code:
Code:
webBrowser.Refresh().
Double-Click on the Stop Button and enter this code:
Code:
webBrowser.Stop().
Double-Click on the Home Button and enter this code:
Code:
webBrowser.GoHome().
Double-Click on the GO Button and enter this code: webBrowser.Navigate(url.Text).[/code]
Double-Click on the webBrowser and enter this code:
Code:
url.Text = e.Url.ToString().


5) The end result

[Image: ws1aja.png]


This is a very basic tutorial! Add more functions to your web browser such as tabs and history as you learn and become more advanced!


[/align]
Pm me if you need assistance with anything.
Reply


Messages In This Thread
Create a simplistic webbrowser - by hockeynut35 - 04-09-2010, 12:25 PM
RE: Create a simplistic webbrowser - by Avery - 04-09-2010, 01:15 PM
RE: Create a simplistic webbrowser - by Avery - 04-09-2010, 01:59 PM
RE: Create a simplistic webbrowser - by Common - 04-09-2010, 02:09 PM
RE: Create a simplistic webbrowser - by Avery - 04-09-2010, 05:51 PM
RE: Create a simplistic webbrowser - by Silver - 04-09-2010, 02:37 PM
RE: Create a simplistic webbrowser - by Common - 04-09-2010, 02:39 PM
RE: Create a simplistic webbrowser - by Kewlz - 04-10-2010, 05:58 AM
RE: Create a simplistic webbrowser - by Aero - 04-11-2010, 02:54 PM
RE: Create a simplistic webbrowser - by Dii xOx - 04-11-2010, 03:05 PM
RE: Create a simplistic webbrowser - by Elektrisk - 04-12-2010, 02:27 PM
RE: Create a simplistic webbrowser - by Elektrisk - 04-12-2010, 03:59 PM
RE: Create a simplistic webbrowser - by Dii xOx - 04-11-2010, 03:10 PM
RE: Create a simplistic webbrowser - by Dii xOx - 04-11-2010, 03:11 PM
RE: Create a simplistic webbrowser - by Effectzz - 04-12-2010, 01:42 PM
RE: Create a simplistic webbrowser - by Elektrisk - 04-12-2010, 05:30 PM
RE: Create a simplistic webbrowser - by RaZoR03 - 04-18-2010, 12:28 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  [TUT] How to make a simple WebBrowser in VB 2010! [TUT] - [ Pictures] Statics 95 61,972 10-07-2012, 06:56 AM
Last Post: a99
  How To make a basic webbrowser B3cnoc 2 548 07-12-2011, 07:23 PM
Last Post: Relapse
  My Video on How to Use Proxy - WebBrowser (VB.net/VB2008 ) zerdnem 4 2,253 04-16-2011, 10:32 PM
Last Post: zerdnem

Forum Jump:


Users browsing this thread: 4 Guest(s)