Nevron .NET Vision
Nevron.UI.WinForm.Controls Namespace / NShortcut Class
Members Example

In This Topic
    NShortcut Class
    In This Topic
    Represents a keyboard shortcut combination that can be assigned to a INShortcutProvider instance.
    Object Model
    NShortcut Class
    <System.ComponentModel.EditorAttribute(Nevron.Internal.nhtb, System.Drawing.Design.UITypeEditor)>
    Public Class NShortcut 
       Implements Nevron.Globalization.INLocalizable, INPropertyPageProvider 
    Dim instance As NShortcut
    [System.ComponentModel.Editor(Nevron.Internal.nhtb, System.Drawing.Design.UITypeEditor)]
    public class NShortcut : Nevron.Globalization.INLocalizable, INPropertyPageProvider  
    Using this simple class allows you to create and use practically any keyboard combination, not only the predefined ones in the Windows.Forms.Shortcut enumeration.
    The following example creates Control+Shift+O keyboard combination and attaches it to an existing NCommand object:
    NShortcut shortcut = new NShortcut(Keys.O, Keys.Control | Keys.Shift);
    nCommand1.Shortcut = shortcut;
    Inheritance Hierarchy



    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