Share via


CommandButton Object Members

Outlook Forms Script Reference

Starts, ends, or interrupts an action or series of actions.

Properties

  Name Description
Bb176973.properties(en-us,office.12).gif Accelerator Returns or sets the accelerator key for a control. Read/write.
Bb176973.properties(en-us,office.12).gif AutoSize Returns or sets a Boolean that specifies whether an object automatically resizes to display its entire contents. Read/write.
Bb176973.properties(en-us,office.12).gif BackColor Returns or sets a Long that specifies the background color of the object. Read/write.
Bb176973.properties(en-us,office.12).gif BackStyle Returns or sets an Integer that specifies the background style for an object. Read/write.
Bb176973.properties(en-us,office.12).gif Caption Returns or sets a String that appears on the button to describe what it does. Read/write.
Bb176973.properties(en-us,office.12).gif Enabled Returns or sets a Boolean that specifies whether a control can receive the focus and respond to user-generated events. Read/write.
Bb176973.properties(en-us,office.12).gif ForeColor Returns or sets a Long that specifies the foreground color of an object. Read/write.
Bb176973.properties(en-us,office.12).gif Locked Returns or sets a Boolean that specifies whether a control can be edited. Read/write.
Bb176973.properties(en-us,office.12).gif MouseIcon Returns a String that represents the full path name of a custom icon that is to be assigned to the control. Read-only.
Bb176973.properties(en-us,office.12).gif MousePointer Returns or sets an Integer that specifies the type of pointer displayed when the user positions the mouse over a particular object. Read/write.
Bb176973.properties(en-us,office.12).gif Picture Returns a String that specifies the full path name of a bitmap to display on a control. Read-only.
Bb176973.properties(en-us,office.12).gif PicturePosition Returns or sets an Integer that specifies the location of the picture relative to its caption.. Read/write.
Bb176973.properties(en-us,office.12).gif TakeFocusOnClick Returns or sets a Boolean that specifies whether a control takes the focus when clicked. Read/write.
Bb176973.properties(en-us,office.12).gif WordWrap Returns or sets a Boolean that specifies whether the contents of a control automatically wrap at the end of a line and the control expands to fit the text. Read/write.

Events

  Name Description
Bb176973.events(en-us,office.12).gif Click Occurs when the user clicks inside the control.