Click here to Skip to main content
15,886,026 members
Articles / Programming Languages / C#

Towards Cleaner Code II, a C# GUI Invoke/Async Helper

Rate me:
Please Sign up or sign in to vote.
4.82/5 (25 votes)
1 Oct 2008CPOL6 min read 74.4K   447   47  
An async helper class in C# with GUI Invoke capability, that greatly reduces the code required to invoke and track tasks that affect forms and controls.

Microsoft Visual Studio Solution File, Format Version 9.00
# Visual Studio 2005
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Async", "Async.csproj", "{18BCA4A3-F860-4558-9EB7-0C7FECDBD3BE}"
	ProjectSection(WebsiteProperties) = preProject
		Debug.AspNetCompiler.Debug = "True"
		Release.AspNetCompiler.Debug = "False"
	EndProjectSection
EndProject
Global
	GlobalSection(SolutionConfigurationPlatforms) = preSolution
		Debug|Any CPU = Debug|Any CPU
		Release|Any CPU = Release|Any CPU
	EndGlobalSection
	GlobalSection(ProjectConfigurationPlatforms) = postSolution
		{18BCA4A3-F860-4558-9EB7-0C7FECDBD3BE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
		{18BCA4A3-F860-4558-9EB7-0C7FECDBD3BE}.Debug|Any CPU.Build.0 = Debug|Any CPU
		{18BCA4A3-F860-4558-9EB7-0C7FECDBD3BE}.Release|Any CPU.ActiveCfg = Release|Any CPU
		{18BCA4A3-F860-4558-9EB7-0C7FECDBD3BE}.Release|Any CPU.Build.0 = Release|Any CPU
	EndGlobalSection
	GlobalSection(SolutionProperties) = preSolution
		HideSolutionNode = FALSE
	EndGlobalSection
EndGlobal

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Architect CodeToast.com
United States United States
Nicholas is the Chief Developer at SAM Systems, a software company that specializes in video surveillance, compression, and streaming. We have a full surveillance and compression platform for Windows, with SDK: www.samipvideo.com.

Nick is especially interested in high-performance, multi-threaded/parallel code, video processing, cross-platform development, and GUI design. He maintains a blog about software development and business at www.codetoast.com - check there for more detail on articles posted here, and other musings about the technology world.

I also play guitar, collect toasters and dead hard drives, and apparently like writing overly formal bio's in the third person.

Comments and Discussions