This documentation is archived and is not being maintained.

CommandBarEvents Object

Visual Studio .NET 2003

Causes a Click Event to occur when a control on the command bar is clicked.




[Visual Basic .NET]
Public Class CommandBarEvents
[Visual Basic 6]
Class CommandBarEvents
class CommandBarEvents
public class CommandBarEvents
[JScript .NET]
public class CommandBarEvents


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 using the WithEvents object declaration.


Namespace: EnvDTE

File: dte.olb


<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
End Sub

See Also

Properties, Methods, and Events | CommandBarEvents Property