O'Reilly logo

C# 2008 and 2005 Threaded Programming: Beginner's Guide by Gastón C. Hillar

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Time for action - Running the Sunspot Analyzer in many concurrent independent pieces

Now, we are going to create the UI and write some code to use the SunspotAnalyzer class and its encapsulated power:

  1. Stay in the project, SunspotsAnalyzer.
  2. Open the Windows Form Form1 (frmSunspotsAnalyzer) in the form designer, add the following controls, and align them as shown in the image:
    Time for action - Running the Sunspot Analyzer in many concurrent independent pieces

    (Image credit: Hinode JAXA/NASA)

    • One picturebox (picSunspots) with its SizeMode property set to StretchImage.
    • One button showing a space shuttle and its Text property set to Run sunspots analyzer batch (butRunBatch). This button will start an instance of the parallel algorithm subclass, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required