Restore Method

Restores the initial size and position of the window.

Applies to: Window object

Syntax

object.Restore ()

The Restore method syntax has these parts:

Part Description
object Required. An expression, that returns a Window object.

Remarks

The initial size and position of the window is its state when it's neither minimized, nor maximized. The initial size and position of the window can be set by using the SetWindowRect method. To find out the current state of the window, use the State property.

 

See Also

State property, Maximize method, Minimize method, SetWindowRect method