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 Name | Type | Scope | Value |
---|---|---|---|
WinLocation | System.Drawing.Point | User | 0,0 |
WinSize | System.Drawing.Size | User | 0,0 |