Windows Forms is the new platform for Microsoft Windows application development,
based on the .NET Framework. This framework provides a clear, object-oriented,
extensible set of classes that enable you to develop rich Windows applications.
Additionally, Windows Forms can be used to connect to a Web Service or an
Windows applications run locally on a user's machine. .NET has a rich set of
classes to create sophicated programs. Visual Studio provides many features
which allow creating Windows applications easily. As you've seen with ASP.NET
application you can drag and drop controls.
Let's create a Windows application that makes use of the Web service validator.
From the main menu select File | New | Project
Select Visual C# Projects and Windows Application.
From the main menu select View | Solution Explorer.
Right-click on References in the Solution
Explorer and select Add Web Reference.
Type: http://localhost/webservice1/service1.asmx. into the URL
Press Add Reference.
From the main menu select View | Toolbox.
Drag on a couple of Label controls for User Name and User
Drag on a couple of Text controls for the web user to enter a
user name and password.
Drag on a Button control to validate the user name and
Double-click on the login button to add server-side code: