GetWindowLocation Method Example

The following example retrieves the window size and location of the PictureTestPicture in terms of percentage of the screen.

Dim dTopPct As Double

Dim dLeftPct As Double

Dim dHeightPct As Double

Dim dWidthPct As Double

TestPicture.GetWindowLocation dTopPct, dLeftPct, dHeightPct, dWidthPct