OnKeyDown Method (ValueEditor)

Called when a key is pressed.
Protected Overrides Sub OnKeyDown( _
   ByVal e As KeyEventArgs _
protected override void OnKeyDown( 
   KeyEventArgs e



ValueEditor overrides OnKeyDown to handle certain key presses when it's not in embedded mode.

Note: This is not a comprehensive list of key commands that are handled by the editor. Derived value may provide logic for other key strokes using .NET Commands infrastructure or indirectly by embedding another control inside the editor that processes keyboard messages.

  • Escape: Exits edit mode.
  • Enter: Enters edit mode.
  • F2: Toggles edit mode.


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