Not logged in - Login
< back

Save / Restore Windows App Form Location

Save & Restore the screen size and location of a windows form

The following illustrates how to save & restore the location of a windows application. Net result is that when an application is started, its form is in same location and the same size that it was when it was last closed.

Create user properties

Create 2 user properties in the Windows application project.

Property NameTypeScopeValue
WinLocationSystem.Drawing.PointUser0,0
WinSizeSystem.Drawing.SizeUser0,0