Creating a Web Browser
The main commands for controlling your WebBrowser control are very simple. Let's cover them now:
Visiting a Site
To visit a site, call the Navigate method, passing a Web address. Once a site has loaded into the WebBrowser control, the surfer can use it just like Internet Explorer. Let's look at two quick samples for opening a site:
WebBrowser1.Navigate (txtWebAddress.Text)
WebBrowser1.Navigate ("http://www.vbworld.com/")
Navigating a Site
Once you're at a site, you may want to move around, going backwards and forwards. You can do that easily via the GoBack and GoForward methods, like this:
WebBrowser1.GoBack WebBrowser1.GoForward
Refreshing and Stopping
If a site is taking too long to load, the user might want to stop it, then refresh. Or perhaps the surfer just needs to refresh and view the latest information. The Stop and Refresh methods of the WebBrowser control work just like Internet Explorer and can be run like this:
WebBrowser1.Stop WebBrowser1.Refresh
Searching for Home
To visit the default home page, you can run the simple GoHome method. And if you want to display the default search page, try out the GoSearch method. Here's an example:
WebBrowser1.GoHome WebBrowser1.GoSearch
Handling Errors
It's worth noting that a lot of WebBrowser commands are prone to silly, menial errors, so feel free to use 'On Error Resume Next' statements liberally.



Solid state disks (SSDs) made a splash in consumer technology, and now the technology has its eyes on the enterprise storage market. Download this eBook to see what SSDs can do for your infrastructure and review the pros and cons of this potentially game-changing storage technology.
Discover how to start developing for the Android platform with this extensive guide, which provides a reference to the Android platform as well as a look at developing your first Android application. You'll explore the top 10 features for developers as well as learn design and development tips that go beyond the phone and target tablet development as well.