CommandBarEvents Interface

 

Causes a Click event to occur when a control on the command bar is clicked. Use this object for functionality, and refer to CommandBarEventsClass for this object's documentation.

Namespace:   EnvDTE
Assembly:  EnvDTE (in EnvDTE.dll)

No code example is currently available or this language may not be supported.

NameDescription
System_CAPS_pubmethodadd_Click(_dispCommandBarControlEvents_ClickEventHandler)

This API supports the product infrastructure and is not intended to be used directly from your code. Microsoft Internal Use Only.(Inherited from _dispCommandBarControlEvents_Event.)

System_CAPS_pubmethodremove_Click(_dispCommandBarControlEvents_ClickEventHandler)

This API supports the product infrastructure and is not intended to be used directly from your code. Microsoft Internal Use Only.(Inherited from _dispCommandBarControlEvents_Event.)

NameDescription
System_CAPS_pubeventClick

This API supports the product infrastructure and is not intended to be used directly from your code. Microsoft Internal Use Only.(Inherited from _dispCommandBarControlEvents_Event.)

The CommandBarEvents object is returned by the CommandBarEvents property of the Events object. The object that is returned has one event in its interface, the Click event. In Visual Basic, you can handle this event by using the WithEvents object declaration.

<System.ContextStaticAttribute()> Public WithEvents CommandBarEvents As EnvDTE.CommandBarEvents

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