Screen.Depth

From Xojo Documentation

Read-Only Property (As Integer )
IntegerValue = aScreen.Depth

Supported for all project types and targets.

The color depth of the screen in pixels. Use the Screen method to call Depth. For example, Screen(0).Depth returns the depth of the main screen.

Example

Dim colorDepth As Integer = Screen(0).Depth