I would like to save and restore the state of a WinForms Form , more specifically the DesktopBounds and the WindowState .
However, when the WindowState is not normal (ie minimized or maximized) then I would like to save the previous value of DesktopBounds, when the Form was still in a normal state.
Obviously, windows remembers this previous state somewhere, because clicking the maximize button twice restores the original position and size of the form. How do I read this original state?
EDIT : Some similar SO questions:
检查RestoreBounds属性。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.