Share via


_CommandBarButtonEvents_Event.Click EventĀ 

Occurs when the user clicks a CommandBarButton object.

Namespace: Microsoft.Office.Core
Assembly: office (in office.dll)

Usage

WithEvents _CommandBarButtonEvents_Event1 As _CommandBarButtonEvents_Event
Function _CommandBarButtonEvents_Event1_Click(Ctrl As CommandBarButton, _
    CancelDefault As Boolean) As Void
    Handles _CommandBarButtonEvents_Event1.Click
End Function

Syntax

Event Click As _CommandBarButtonEvents_ClickEventHandler
event _CommandBarButtonEvents_ClickEventHandler Click;
event _CommandBarButtonEvents_ClickEventHandler^ Click;
 void add_Click(_CommandBarButtonEvents_ClickEventHandler handler);
 void remove_Click(_CommandBarButtonEvents_ClickEventHandler handler);
In JScript, you can handle the events defined by a class, but you cannot define your own.

Platforms

Development Platforms

Windows XP Home Edition, Windows XP Professional, Windows Server 2003, and Windows 2000

Target Platforms

See Also

Reference

_CommandBarButtonEvents_Event Interface
Microsoft.Office.Core Namespace

Other Resources

_CommandBarButtonEvents_Event Members