Skip to content

Latest commit

 

History

History
44 lines (22 loc) · 1.38 KB

Outlook.commandbutton.click.md

File metadata and controls

44 lines (22 loc) · 1.38 KB
title ms.assetid ms.date ms.localizationpriority
CommandButton.Click Event (Outlook Forms Script)
747d6f8f-c4da-f670-d476-21729387c4bc
06/08/2017
medium

CommandButton.Click Event (Outlook Forms Script)

Occurs when the user clicks inside the control.

Syntax

expression.Click

expression A variable that represents a CommandButton object.

Remarks

The following are examples of actions that initiate the Click event of the specified control:

  • Clicking a blank area of a form or a disabled control (other than a list box) on the form.

  • Clicking a CommandButton.

  • Pressing the SPACEBAR when a CommandButton has the focus.

  • Clicking a control with the left mouse button (left-clicking).

  • Pressing ENTER on a form that has a command button whose Default property is set to True, as long as no other command button has the focus.

  • Pressing ESC on a form that has a command button whose Cancel property is set to True, as long as no other command button has the focus.

  • Pressing a control's accelerator key.

Left-clicking changes the value of a control, thus it initiates the Click event. Right-clicking does not change the value of the control, so it does not initiate the Click event.

[!includeSupport and feedback]