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

RT @ordnung: How Target Figured Out A Teen Girl Was Pregnant Before Her Father Did - Forbes http://t.co/lhswKeO2
planetdonovan 2 days ago

“@planetdonovan: @adrianshannon random site of the day http://t.co/r9K9Zcu1” // ??! //pure genius but can my wife do that?
DerickBSeagers 5 days ago

“@planetdonovan: random site of the day http://t.co/gHfphnuS” // ??!
adrianshannon 5 days ago

2012.4 http://t.co/Fg9UqQIV
planetdonovan 5 days ago

random site of the day http://t.co/OCsZn1EJ
planetdonovan 5 days ago