This example project will demonstrate how to use the SocketWrench .NET class and implement the general concepts that were covered in the Quick Start Guide. To build this project you will need Microsoft Visual Studio .NET 2003 or Visual Studio 2005 installed, along with the SocketWrench 6.0 .NET Edition. The example itself will connect to a web server and retrieve the index page, storing the contents in a string variable and then displaying it in a multi-line textbox control.
To create a new project, start Visual Studio and select File | New | Project from the menu. The New Project dialog will be displayed. Select Visual Basic Projects as the project type, and Windows Application as the template. This will create a new project with an empty form named Form1.
The next step is to add SocketWrench to the project. To do this, select Project | Add Reference from the menu. A dialog will be displayed which lists the available references. Scroll down to SocketTools.SocketWrench.dll and select it, then click on the Select button to add it to the list of references. Then click on the OK button to add the reference to your project.