LouB said:
Well I did that a mere 7 times and it did not work.
What app are you using?
Here's the info on the api from MSDN.
Remarks
This sample illustrates how to save the size, location, and state of a
Window so the Window opens in the same position it was closed. Furthermore,
this sample is multi-monitor aware, which means that if the monitor on which
the Window was closed is disconnected, the Window is shown on a connected
monitor instead.
This requires using the following Win32 APIs (from User32.dll):
WINDOWPLACEMENT: To store window size, location, and state (see
WINDOWPLACEMENT Structure).
GetWindowPlacement: To retrieve the current WINDOWPLACEMENT data for the
window before it closes (see GetWindowPlacement Function).
SetWindowPlacement: To restore the WINDOWPLACEMENT data when the window
opens (see SetWindowPlacement Function).
The WINDOWPLACEMENT structure is physically stored on disk using the
Microsoft .NET Framework support for strongly-typed application settings
(see Application Settings Overview).