Nevron .NET Vision
Nevron.UI.WinForm.Controls Namespace / NCommandContext Class / Executing Event


In This Topic
    Executing Event (NCommandContext)
    In This Topic
    Fired when a command is about to be executed. Set the Cancel property of the EventArgs to true to prevent the command from being executed.
    Syntax
    'Declaration
     
    
    <System.ComponentModel.DescriptionAttribute("Fired when a command is about to be executed. Set the Cancel property of the EventArgs to true to prevent the command from being executed.")>
    Public Event Executing As CommandContextCancelEventHandler
    'Usage
     
    
    Dim instance As NCommandContext
    Dim handler As CommandContextCancelEventHandler
     
    AddHandler instance.Executing, handler
    [System.ComponentModel.Description("Fired when a command is about to be executed. Set the Cancel property of the EventArgs to true to prevent the command from being executed.")]
    public event CommandContextCancelEventHandler Executing
    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