Share via


CommandBarEventsClass.Click Event

Definition

Occurs when the OnAction property for the corresponding CommandBarControl object is set or returned.

This API supports the product infrastructure and is not intended to be used directly from your code.

public:
 virtual event EnvDTE::_dispCommandBarControlEvents_ClickEventHandler ^ Click;
public virtual event EnvDTE._dispCommandBarControlEvents_ClickEventHandler Click;
member this.Click : EnvDTE._dispCommandBarControlEvents_ClickEventHandler 
Public Overridable Custom Event Click As _dispCommandBarControlEvents_ClickEventHandler Implements Click

Event Type

Implements

Examples

Public Sub CommandBarEvents_Click(ByVal CommandBarControl As Object, ByRef handled As Boolean, ByRef CancelDefault As Boolean) Handles CommandBarEvents.Click  
   MsgBox("test")  
End Sub  

Remarks

Use CommandBarEvents.Click.

Applies to