Click here to Skip to main content
15,884,948 members
Articles / Programming Languages / C#

Saving the state (serializing) a Windows Form

Rate me:
Please Sign up or sign in to vote.
4.40/5 (41 votes)
13 Jun 2010CPOL14 min read 158.8K   8.3K   76  
Describes how to save the state of all controls on a form, and restore them at a later time

Microsoft Visual Studio Solution File, Format Version 11.00
# Visual C# Express 2010
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SerialisationTest", "SerialisationTest.csproj", "{7FCEE99D-C019-42A7-84EC-0E24789DE33E}"
EndProject
Global
	GlobalSection(SolutionConfigurationPlatforms) = preSolution
		Debug|x86 = Debug|x86
		Release|x86 = Release|x86
	EndGlobalSection
	GlobalSection(ProjectConfigurationPlatforms) = postSolution
		{7FCEE99D-C019-42A7-84EC-0E24789DE33E}.Debug|x86.ActiveCfg = Debug|x86
		{7FCEE99D-C019-42A7-84EC-0E24789DE33E}.Debug|x86.Build.0 = Debug|x86
		{7FCEE99D-C019-42A7-84EC-0E24789DE33E}.Release|x86.ActiveCfg = Release|x86
		{7FCEE99D-C019-42A7-84EC-0E24789DE33E}.Release|x86.Build.0 = Release|x86
	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
Software Developer Pixata Ltd
United Kingdom United Kingdom
I've been writing programs for about thirty years now, having started out on an IBM System/32, and moving my way through various IBM mainframes, then onto SGI Unix machines, and ending up (so far) with Windows and the .NET framework.

Favourite programming language is C#, favourite music is classical (the two go well together).

Comments and Discussions