Download Do Work in Background Thread to Keep GUI Responsive

Description

Demonstrate simple example of using BackgroundWorker class to do work on a background thread and then update the GUI in a thread-safe manner.

Source Files

The download file threadsafepubsub.zip has the following entries.


BuildProcessTemplates/DefaultTemplate.11.1.xaml
BuildProcessTemplates/DefaultTemplate.xaml
BuildProcessTemplates/LabDefaultTemplate.11.xaml
BuildProcessTemplates/UpgradeTemplate.xaml
ThreadSafePubSub.sln/*from  ww  w  . j  a v  a 2 s.com*/
ThreadSafePubSubUI/FileReader1.cs
ThreadSafePubSubUI/FileReader2.cs
ThreadSafePubSubUI/FileReader3.cs
ThreadSafePubSubUI/Form1.Designer.cs
ThreadSafePubSubUI/Form1.cs
ThreadSafePubSubUI/Form1.resx
ThreadSafePubSubUI/Form2.Designer.cs
ThreadSafePubSubUI/Form2.cs
ThreadSafePubSubUI/Form2.resx
ThreadSafePubSubUI/Form3.Designer.cs
ThreadSafePubSubUI/Form3.cs
ThreadSafePubSubUI/Form3.resx
ThreadSafePubSubUI/Program.cs
ThreadSafePubSubUI/Properties/AssemblyInfo.cs
ThreadSafePubSubUI/Properties/Resources.Designer.cs
ThreadSafePubSubUI/Properties/Resources.resx
ThreadSafePubSubUI/Properties/Settings.Designer.cs
ThreadSafePubSubUI/Properties/Settings.settings
ThreadSafePubSubUI/ThreadSafePubSubUI.csproj

Download

Click the following link to download threadsafepubsub.zip.

threadsafepubsub.zip




















Home »
  C# Free Code »
    Development »




Algorithm
ANTLR
AOP
Application
Barcode
CHM
Design Patterns
Desktop
DotNet
DotNet Engine
DotNet Application
DotNet Assembly
DotNet Library
Engine
Epub
Example
File
File Library
Framework
GIS
Intellisense
IoC
Library
log4net
Matlab
MSBuild
MVC
MVP
MVVM
Numerical Library
NUnit
OpenCL
Plugin
Quartz
Resx File
SDK
SMS
Thread
UnitTest
Utility
VisualStudio
Windows
XML