Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here.

CommandBarEventsClass.Click Event

This event supports the .NET Framework infrastructure and is not intended to be used directly from your code.

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

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

public virtual event _dispCommandBarControlEvents_ClickEventHandler _dispCommandBarControlEvents_Event.Click
J# supports the use of explicit interface implementations, but not the declaration of new ones.
JScript supports the use of events, but not the declaration of new ones.

Use CommandBarEvents.Click.

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

Community Additions

ADD
Show:
© 2015 Microsoft