ESRI.ArcGIS.ADF
OnKeyUp Method
See Also  Send comments on this topic.
ESRI.ArcGIS.ADF.BaseClasses Namespace > BaseTool Class : OnKeyUp Method




keyCode
Specifies a virtual key code value of the key released on the keyboard. For alpha-numeric keys this corresponds to the ASCII value, for example "A" key returns 65 which is the ASCII value for capital A. Other key codes are F1 to F12 are 112 to 123 respectively.
Shift
Specifies an integer corresponding to the state of the SHIFT (bit 0), CTRL (bit 1) and ALT (bit 2) keys. When none, some or all of these keys are pressed none, some or all the bits get set. These bits correspond to the values 1, 2, and 4, respectively. For example, if both SHIFT and ALT were pressed, Shift would be 5.
This method is called when a key is released, when this tool is active.

Syntax

Visual Basic (Declaration) 
Public Overridable Sub OnKeyUp( _
   ByVal keyCode As Integer, _
   ByVal Shift As Integer _
) 
Visual Basic (Usage)Copy Code
Dim instance As BaseTool
Dim keyCode As Integer
Dim Shift As Integer
 
instance.OnKeyUp(keyCode, Shift)
C# 
public virtual void OnKeyUp( 
   int keyCode,
   int Shift
)

Parameters

keyCode
Specifies a virtual key code value of the key released on the keyboard. For alpha-numeric keys this corresponds to the ASCII value, for example "A" key returns 65 which is the ASCII value for capital A. Other key codes are F1 to F12 are 112 to 123 respectively.
Shift
Specifies an integer corresponding to the state of the SHIFT (bit 0), CTRL (bit 1) and ALT (bit 2) keys. When none, some or all of these keys are pressed none, some or all the bits get set. These bits correspond to the values 1, 2, and 4, respectively. For example, if both SHIFT and ALT were pressed, Shift would be 5.

Remarks

Note to inheritors: Override the OnKeyUp method if you need to perform some action when the OnKeyUp event is raised when the tool is active.

See Also

© 2010 All Rights Reserved.