DesktopUIControl.Enabled

From Xojo Documentation

You are currently browsing the old Xojo documentation site. Please visit the new Xojo documentation site!

Property (As Boolean )
aDesktopUIControl.Enabled = newBooleanValue
or
BooleanValue = aDesktopUIControl.Enabled

New in 2021r3

Supported for all project types and targets.

Determines if the control should be enabled when the owning window is opened.

Notes

A disabled control cannot be clicked and cannot receive the focus.

Example

This example disables the control.

Me.Enabled = False