Skip to content

Latest commit

 

History

History
38 lines (20 loc) · 1.86 KB

Outlook.optionbutton.enabled.md

File metadata and controls

38 lines (20 loc) · 1.86 KB
title ms.assetid ms.date ms.localizationpriority
OptionButton.Enabled Property (Outlook Forms Script)
3e10fee4-057d-40f7-015b-8d3e1138c1af
06/08/2017
medium

OptionButton.Enabled Property (Outlook Forms Script)

Returns or sets a Boolean that specifies whether a control can receive the focus and respond to user-generated events. Read/write.

Syntax

expression.Enabled

expression A variable that represents an OptionButton object.

Remarks

True is the control can receive the focus and respond to user-generated events, and is accessible through code (default). False if the user cannot interact with the control by using the mouse, keystrokes, accelerators, or hotkeys. The control is generally still accessible through code.

Use the Enabled property to enable and disable controls. A disabled control appears dimmed, while an enabled control does not. Also, if a control displays a bitmap, the bitmap is dimmed whenever the control is dimmed.

The Enabled and Locked properties work together to achieve the following effects:

  • If Enabled and Locked are both True, the control can receive focus and appears normally (not dimmed) in the form. The user can copy, but not edit, data in the control.

  • If Enabled is True and Locked is False, the control can receive focus and appears normally in the form. The user can copy and edit data in the control.

  • If Enabled is False and Locked is True, the control cannot receive focus and is dimmed in the form. The user can neither copy nor edit data in the control.

  • If Enabled and Locked are both False, the control cannot receive focus and is dimmed in the form. The user can neither copy nor edit data in the control.

[!includeSupport and feedback]