Version

ToolKeyUp Event (UltraToolbarsManager)

Occurs when a key is released when a tool has the input focus.
Syntax
'Declaration
 
Public Event ToolKeyUp As ToolKeyEventHandler
public event ToolKeyEventHandler ToolKeyUp
Event Data

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.

PropertyDescription
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.
Remarks

This event is generated when the user releases 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.

Example
The following code demonstrates how to access the information passed in the event arguments of the ToolKeyUp event.

For an overview of how to handle events in Visual Basic or Visual C#, see Event Handlers in Visual Basic and Visual C#. For specific information and code examples illustrating how to consume events in your application, see Consuming Events in the .NET Framework Developer's Guide.

Imports System.Diagnostics
Imports Infragistics.Win
Imports Infragistics.Win.UltraWinToolbars

	Private Sub UltraToolbarsManager1_ToolKeyUp(ByVal sender As Object, ByVal e As Infragistics.Win.UltraWinToolbars.ToolKeyEventArgs) Handles UltraToolbarsManager1.ToolKeyUp

		Debug.WriteLine("The Tool with key '" + e.Tool.Key + "' has recorded a keyup 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_ToolKeyUp(object sender, Infragistics.Win.UltraWinToolbars.ToolKeyEventArgs e)
		{

			Debug.WriteLine("The Tool with key '" + e.Tool.Key + "' has recorded a keyup for key '" + e.KeyCode.ToString() + "'");

			// Note: Set e.Handled = true to indicate that the key has been handled

		}
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