Click here to Skip to main content
15,892,697 members
Articles / Programming Languages / C#

Simple class to save your Form's Size To Registry

Rate me:
Please Sign up or sign in to vote.
5.00/5 (1 vote)
22 Apr 2011CPOL 4.6K   1  
First, let me say that I would not recommend using the registry for this purpose. The registry is fraught with pitfalls to accommodate some really complex scenarios that you probably don’t want to mess with just so you can persist your form size. I would think that a user scoped configuration...

Alternatives

Members may post updates or alternatives to this current article in order to show different approaches or add new features.

Please Sign up or sign in to vote.
22 Apr 2011kornman00
I just whipped this up EditPlus so there may be some syntax errors.using System;using System.Drawing;using System.Windows.Forms;using Microsoft.Win32; namespace Chico.Registry{ public struct SizeRegistry : IDisposable { private const string kWidthName =...
Please Sign up or sign in to vote.
22 Apr 2011charles henington 2 alternatives  
Simple class to save your Form's Size To Registry

License

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


Written By
Software Developer Open Systems Technologies
United States United States
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions