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 - Starting new threads in a new window

Now, we have to create a new windows form to show the full image, having made its the brightness adjustments:

  1. Stay in the project, ImageBrowser.
  2. Add a new Windows form (frmShowFullImage).
  3. Open Windows form frmShowFullImage in the form designer and add a picturebox control (picImage) to it.
  4. Open the code for the Windows form frmShowFullImage.
  5. Add the following lines of code at the beginning (as we are going to use the System.Threading.Thread class):
    using System.Threading;
    
  6. Add the following private variables:
    // The brightness adjustment value private double priBrightnessDelta; // The image file name private string prsImageFileName; // The bitmap to show with the brightness adjustment private Bitmap ...

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