Is there an event that is fired when you maximize a Form or un-maximize it?
Before you say Resize or SizeChanged: Those get only fired if the Size actually changes. If your window happens to be equal in size to the maximized window, they do not fire. Location looks like the next best bet, but that again feels like gambling on a coincidence.
You can do this by overriding WndProc:
This should handle the event on any window.
SC_RESTOREis0xF120, andSC_MINIMIZEis0XF020, if you need those constants, too.