Screen Method

Used to access the properties of a Screen object. Returns a reference to the screen passed.

Syntax
Screen index

Parameters
index | Integer | The number of the screen whose property you wish to read. 0=the main screen (the screen with the menu bar).

# Notes

You can use the Screen function to access the screen properties for the monitors attached to the user's computer. Screen 0 is the main screen (the one with the menu bar). You can use the ScreenCount function to determine how many screens exist.

# Examples

This example displays the size of the user's main screen.

MsgBox "Your main screen is "+ Str(Screen(0).width)+" by " + Str(Screen(0).height)+"."

# See Also

Screen class; ScreenCount function.