Saving and Restoring Location, Size, and Window State of a Form
Details Related Types
Site:  C# Corner
Original URL:  http://www.c-sharpcorner.com/Code/2002/Mar/SavingNRestoringWinJM.asp
Summary:
Every time I create a new desktop application I find myself having to add some code that will restore the main application window to the position, size and window state at the time of closing. This article presents a simple C# class that may be added to a form to automatically do this. When I designed this class I wanted to be able to add it to a form using the least amount of code and also be able to add it to a form from the toolbox.
Microsoft.Win32.RegistryKey
System.ComponentModel.CancelEventArgs
System.ComponentModel.CancelEventHandler
System.ComponentModel.Component
System.Drawing.Point
System.Drawing.Size
System.EventArgs
System.EventHandler
System.Windows.Forms.Form
System.Windows.Forms.FormWindowState
Ad
MBR BootFX
Best-of-breed application framework for .NET projects, developed by Matthew Baxter-Reynolds and MBR IT
 
 Copyright © Matthew Baxter-Reynolds 2001-2008. '.NET 247 Software Development Services' is a trading style of MBR IT Solutions Ltd.
Contact Us - Terms of Use - Privacy Policy - www.dotnet247.com