Version

KeyActionMappings Property (TrackBarEditor)

Gives you the ability to reconfigure the way the control responds to user keystrokes.
Syntax
'Declaration
 
Public ReadOnly Property KeyActionMappings As TrackBarKeyActionMappings
public TrackBarKeyActionMappings KeyActionMappings {get;}
Remarks

The KeyActionMappings property provides access to the control's mechanism for handling keyboard input from users. All keystrokes for actions such as selection, navigation and editing are stored in a table-based system that you can examine and modify using this property. Through the KeyActionsMappings property, you can customize the keyboard layout of the control to match your own standards for application interactivity.

For example, if you wanted users to be able to change the value by pressing the F8 key, you could add this behavior. You can specify the key code and any special modifier keys associated with an action, as well as determine whether a key mapping applies in a given context.

KeyCode ActionCode StateRequired StateDisallowed SpecialKeysRequired SpecialKeysDisallowed
Left Last Horizontal, NullValue Alt
Up Last Horizontal, NullValue Alt
Right First Horizontal, NullValue Alt
Down First Horizontal, NullValue Alt
Next First Horizontal, NullValue Alt
PageUp Last Horizontal, NullValue Alt
Home First Horizontal, NullValue Alt
End Last Horizontal, NullValue Alt
Left First Vertical, NullValue Alt
Up First Vertical, NullValue Alt
Right Last Vertical, NullValue Alt
Down Last Vertical, NullValue Alt
Next Last Vertical, NullValue Alt
PageUp First Vertical, NullValue Alt
Home Last Vertical, NullValue Alt
End First Vertical, NullValue Alt
Left SmallDecrement Horizontal NullValue Alt
Up SmallDecrement Horizontal NullValue Alt
Right SmallIncrement Horizontal NullValue Alt
Down SmallIncrement Horizontal NullValue Alt
Next LargeIncrement Horizontal NullValue Alt
PageUp LargeDecrement Horizontal NullValue Alt
Home First Horizontal NullValue Alt
End Last Horizontal NullValue Alt
Left SmallIncrement Vertical NullValue Alt
Up SmallIncrement Vertical NullValue Alt
Right SmallDecrement Vertical NullValue Alt
Down SmallDecrement Vertical NullValue Alt
Next LargeDecrement Vertical NullValue Alt
PageUp LargeIncrement Vertical NullValue Alt
Home Last Vertical NullValue Alt
End First Vertical NullValue Alt

Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, 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