property Surface.Enabled as Boolean
Enables or disables the control.

TypeDescription
Boolean A Boolean expression that specifies whether the control is enabled or disabled.
By default, the Enabled property is True. Use the Enabled property of the control to disable the entire surface. The Enabled property changes the Enabled state of the window that hosts the surface. While the control's Enabled property is False, no mouse or key events are generated. Use the Enabled property to show the element as disabled ( grayed ). The Selectable property specifies whether the user can select the element at runtime. The Resizable property specifies whether the element can be resized at runtime.