Leadtools.WinForms Send comments on this topic. | Back to Introduction - All Topics | Help Version 16.5.9.25
EnableKeyboard Property
See Also 
Leadtools.WinForms Namespace > RasterImageList Class : EnableKeyboard Property



Gets or sets a value indicating whether the control automatically processes the keyboard.

Syntax

Visual Basic (Declaration) 
<DescriptionAttribute("Indicates whether the control automatically processes the keyboard.")>
<CategoryAttribute("Behavior")>
Public Property EnableKeyboard As Boolean
Visual Basic (Usage)Copy Code
Dim instance As RasterImageList
Dim value As Boolean
 
instance.EnableKeyboard = value
 
value = instance.EnableKeyboard
C# 
[DescriptionAttribute("Indicates whether the control automatically processes the keyboard.")]
[CategoryAttribute("Behavior")]
public bool EnableKeyboard {get; set;}
C++/CLI 
[DescriptionAttribute("Indicates whether the control automatically processes the keyboard.")]
[CategoryAttribute("Behavior")]
public:
property bool EnableKeyboard {
   bool get();
   void set (bool value);
}

Return Value

true if the control automatically processes the keyboard; otherwise, false. Default value is true.

Example

For an example, refer to RasterImageList.

Remarks

When automatic keyboard processing is enabled, the RasterImageList Control will process the following keys:
KeyEvent
PageUp, Up Arrow, Left ArrowScroll up/left one item (depends on ScrollStyle)
PageDown, Down Arrow, Right ArrowScroll down/right one item (depends on ScrollStyle)
Ctrl + PageUp, Ctrl + Up, Ctlr + Left, HomeScroll to beginning of list (depends on ScrollStyle)
Ctrl + PageDown, Ctrl + Down, Ctlr + Right, EndScroll to end of list (depends on ScrollStyle)

If the setting for SelectionMode is not RasterImageListSelectionMode.None, then the selected item will move up, down, left, or right, depending on the key(s) being processed. If SelectionMode is set to RasterImageListSelectionMode.Multi, multiple items can be selected using the CTRL and/or SHIFT keys in conjunction with the keys listed above.

Requirements

Target Platforms: Microsoft .NET Framework 2.0, Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also