'Declaration Public Event ToolKeyDown As ToolKeyEventHandler
public event ToolKeyEventHandler ToolKeyDown
The event handler receives an argument of type ToolKeyEventArgs containing data related to this event. The following ToolKeyEventArgs properties provide information specific to this event.
Property | Description |
---|---|
Alt (Inherited from System.Windows.Forms.KeyEventArgs) | Gets a value indicating whether the ALT key was pressed. |
Control (Inherited from System.Windows.Forms.KeyEventArgs) | Gets a value indicating whether the CTRL key was pressed. |
Handled (Inherited from System.Windows.Forms.KeyEventArgs) | Gets or sets a value indicating whether the event was handled. |
KeyCode (Inherited from System.Windows.Forms.KeyEventArgs) | Gets the keyboard code for a System.Windows.Forms.Control.KeyDown or System.Windows.Forms.Control.KeyUp event. |
KeyData (Inherited from System.Windows.Forms.KeyEventArgs) | Gets the key data for a System.Windows.Forms.Control.KeyDown or System.Windows.Forms.Control.KeyUp event. |
KeyValue (Inherited from System.Windows.Forms.KeyEventArgs) | Gets the keyboard value for a System.Windows.Forms.Control.KeyDown or System.Windows.Forms.Control.KeyUp event. |
Modifiers (Inherited from System.Windows.Forms.KeyEventArgs) | Gets the modifier flags for a System.Windows.Forms.Control.KeyDown or System.Windows.Forms.Control.KeyUp event. The flags indicate which combination of CTRL, SHIFT, and ALT keys was pressed. |
Shift (Inherited from System.Windows.Forms.KeyEventArgs) | Gets a value indicating whether the SHIFT key was pressed. |
SuppressKeyPress (Inherited from System.Windows.Forms.KeyEventArgs) | Gets or sets a value indicating whether the key event should be passed on to the underlying control. |
Tool | The tool. |
This event is generated when the user presses down a key when a tool has the input focus.
The ToolKeyPressevent is generated when the user presses down and releases a key when a tool has the input focus.
The ToolKeyUpevent is generated when the user releases a key when a tool has the input focus.
Imports System.Diagnostics Imports Infragistics.Win Imports Infragistics.Win.UltraWinToolbars Private Sub UltraToolbarsManager1_ToolKeyDown(ByVal sender As Object, ByVal e As Infragistics.Win.UltraWinToolbars.ToolKeyEventArgs) Handles UltraToolbarsManager1.ToolKeyDown Debug.WriteLine("The Tool with key '" + e.Tool.Key + "' has recorded a keydown for key '" + e.KeyCode.ToString() + "'") ' Note: Set e.Handled = true to indicate that the key has been handled End Sub
using System.Diagnostics; using Infragistics.Win; using Infragistics.Win.UltraWinToolbars; private void ultraToolbarsManager1_ToolKeyDown(object sender, Infragistics.Win.UltraWinToolbars.ToolKeyEventArgs e) { Debug.WriteLine("The Tool with key '" + e.Tool.Key + "' has recorded a keydown for key '" + e.KeyCode.ToString() + "'"); // Note: Set e.Handled = true to indicate that the key has been handled }
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