Long-Running Operations
Imagine that the value of pi in System.Math.PI, at only 20 digits, just isn't accurate enough for you. In that case, you may find yourself writing an application like the one in Figure 14.1 to calculate pi to an arbitrary number of digits.
Figure 14.1. Digits of Pi Application
This program takes as input the number of digits of pi to calculate and, when the Calc button is pressed, shows the progress as the calculation happens.
Progress Indication
Although most applications don't need to calculate the digits of pi, many kinds of applications need to perform long-running operations, whether it's printing, making a Web service ...
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.