Asynchronous Web Services

One specific area in which you'll want to use asynchronous WinForms applications is when calling Web services. Calling a Web service is similar to passing a message between threads, except that Web services messages travel between machines using standard protocols such as HTTP and XML.[3] Imagine a .NET Web service that calculated digits of pi using some way cool fast pi calculation engine:

[3] For thorough coverage of the whys and wherefores of Web services, you can read Real World XML Web Services: For VB and VB .NET Developers (Addison-Wesley, 2002), by Yasser Shohoud.

 Class CalcPiService Inherits System.Web.Services.WebService <WebMethod> _ Function CalcPi(digits As Integer) As String ' Way cool fast pi calculator ...

Get Windows Forms Programming in Visual Basic .NET now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.