How to Save/Restore Window Position

by Donovan Olivier June 6, 2010 8:14PM

Here's a small sample for saving and restoring window position in Windows Forms and WPF. It's using application settings to store the values and the .RestoreBounds property to get the window bounds if the window is currently minimized or maximized.

Save_and_Restore_Window_Position.7z (24.69 kb)


Tags: , , ,

Blog

Comments are closed

The Perpetrator

perpetrator

Donovan Olivier

software developer, architect, husband, father, son, brother, uncle, nephew, sinistral, enquirer, skeptic, cynic, anarchist, contrarian, infidel, dissident, rebel, troublemaker, dissenter, renegade.

Noise

damn this winter appetite!
planetdonovan 1 day ago

@planetdonovan it seems to be the standard ratio!
marceldupreez 1 day ago

@marceldupreez cuz there's one in every carriage ;)
planetdonovan 1 day ago

RT @marclottering: Feel like getting stoned proper today. Anyone have a COSATU connection?
planetdonovan 2 days ago

fail of the day http://t.co/7l0RI9lr
planetdonovan 4 days ago

currently suffering from severe malbeertrition.
planetdonovan 7 days ago