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 - Creating a safe method to change the opacity

Now, we are going to add a new method and a delegate to the form in order to allow the UI to be updated from the other threads, which are running the transparency and opacity effect, that invoke the delegate:

  1. Stay in the project, ImageBrowser.
  2. Open the Windows Form Form1 (frmMain) in the form designer, add the following controls, and align them as shown in the image:
    Time for action - Creating a safe method to change the opacity
    • One status strip (staStatusStrip) with its Dock property set to Bottom
    • One tool strip progress bar (tstThumbnailsProgress) added to the staStatusStrip status strip
    • One flow layout panel (pnlFlowLayoutPanel) with its AutoScroll ...

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