Download a Web Page using the WebClient - Know your options
(Page 3 of 4 )
Visual Basic 2005 Express Edition has all the nice features of the full Visual Studio 2005; that includes intellisense. You should make use of this feature to code so that you will understand the various possibilities as shown in the next picture. As you can see, the number of overloaded options you have, and in fact most of what you can code, is spelled out and laid out neatly.

Click on Project and from the drop-down click on the ExploreWebClient Properties... hyperlink to open the following window, where you can set the project to run the page you choose from among other forms in this application, as shown by the drop-down, Startup Object.

When you run the form, you will see the form displayed as shown. The textbox shows the source of the blog and the one below it shows the web page.

View from the Object Browser
The Object Browser provides access to the tree structure of the various Namespaces and classes used in the project. The next picture shows a part of the class WebClient which has a large number of methods and some properties. The OpenRead() method is highlighted.

Next: Create a form using the WebClient Control >>
More Code Examples Articles
More By Jayaram Krishnaswamy