WindowState Property Example

The following example uses the WindowState property to return the visual state of the specified window. The value returned is a number that corresponds to a predefined constant that specifies the visual state of a window.

Debug.Print Application.VBE.Windows(9).WindowState