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 concurrent encryptions on demand using a pool of threads

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

  1. Stay in the project, MarsEncrypter.
  2. Open the Windows Form Form1 (frmMarsEncrypter) in the form designer, add the following controls and components, and align them as shown in the following image:
    Time for action - Running concurrent encryptions on demand using a pool of threadsthreadsqueue, managing in pool

    (Rover image credit: Courtesy NASA/JPL-Caltech)

    • One listbox (libFilesEncrypted).
    • One picturebox (picRover) with its SizeMode property set to StretchImage.
    • One FileSystemWatcher component (fswCheckForNewFiles) with its NotifyFilter property set to LastAccess, its ...

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