Most applications need to save state from time to time. On the full .NET Framework, this is quite easy, just use the XmlSerializer to serialize your state object. On the .NET Compact Framework, there is no public XmlSerializer (at least, not for version