Nevron .NET Vision
Nevron.UI.WinForm.Controls Namespace / NCommandBarsManager Class / CommandContextExecuting Event


In This Topic
    CommandContextExecuting Event
    In This Topic
    Notifies that a command, sharing the specified context is abound to be executed. This event is useful if you want to prevent a command from being executed under certain conditions.
    Syntax
    'Declaration
     
    
    <System.ComponentModel.DescriptionAttribute("Notifies that a command, sharing the specified context is abound to be executed. This event is useful if you want to prevent a command from being executed under certain conditions.")>
    Public Event CommandContextExecuting As CommandContextCancelEventHandler
    'Usage
     
    
    Dim instance As NCommandBarsManager
    Dim handler As CommandContextCancelEventHandler
     
    AddHandler instance.CommandContextExecuting, handler
    [System.ComponentModel.Description("Notifies that a command, sharing the specified context is abound to be executed. This event is useful if you want to prevent a command from being executed under certain conditions.")]
    public event CommandContextCancelEventHandler CommandContextExecuting
    Event Data

    The event handler receives an argument of type CommandContextCancelEventArgs containing data related to this event. The following CommandContextCancelEventArgs properties provide information specific to this event.

    PropertyDescription
    Gets/sets a value whether the event should be canceled.  
    Gets the NCommandContext object associated with the event. (Inherited from Nevron.UI.WinForm.Controls.CommandContextEventArgs)
    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also