Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Method: void ResizeAndReposition(bool)

Declaration

protected virtual void ResizeAndReposition(
    bool firstShow
)

Summary

Override to alter the window size, maximize state and/or position on first show and screen resolution changes. At the time of call, the current position/state/size are already set to the preferred ones, so it is possible to change them with respect to the "saved" values. If this method does nothing then the last saved values will be in effect.

Parameters

boolfirstShowTrue if this is the first time the form is displayed; false if it's a screen resolution change.