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
    Syntax
    'Declaration
     
    
    <System.ComponentModel.TypeConverterAttribute(Nevron.UI.WinForm.Controls.NShortcutTypeConverter)>
    <System.ComponentModel.EditorAttribute(Nevron.Internal.nhtb, System.Drawing.Design.UITypeEditor)>
    <System.SerializableAttribute()>
    Public Class NShortcut 
       Implements Nevron.Globalization.INLocalizable, INPropertyPageProvider 
    'Usage
     
    
    Dim instance As NShortcut
    [System.ComponentModel.TypeConverter(Nevron.UI.WinForm.Controls.NShortcutTypeConverter)]
    [System.ComponentModel.Editor(Nevron.Internal.nhtb, System.Drawing.Design.UITypeEditor)]
    [System.Serializable()]
    public class NShortcut : Nevron.Globalization.INLocalizable, INPropertyPageProvider  
    Remarks
    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.
    Example
    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

    System.Object
       Nevron.UI.WinForm.Controls.NShortcut

    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