This example shows how threads can help us to make User interface more responsive when we have some background jobs.
Description:This example shows how threads can help us to make User interface more responsive when we have some background jobs. It has got pairs of buttons (cmdUnresponsiveStart, cmdToggleForUnResponsiveStart) and (cmdresponsive, cmdToggleForResponsive).There is boolean runflag which checks if counter needs to be incremented and set the counter value in txtcounter.when we click on toggle buttons the counter is stopped,because go checks for this flag.
What is needed to compile?.NET SDK
How to Compile?csc /r:System.dll /r:System.winforms.dll /r:Microsoft.win32.interop.dll/r:System.Drawing.dll responsiveui.cs
Code:
namespace
Pro WPF: Windows Presentation Foundation in .NET 3.0