DicomObjects Reference
DicomObjects Reference / DicomViewer Object / KeyDown Event
Scan code of key pressed
State of the Ctrl, Shift and Alt keys
KeyDown Event
Description
Fired on key down
Syntax
Visual Basic
Public Event KeyDown( _
   ByRef KeyCode As Integer, _
   ByVal Shift As Integer _
)
Parameters
KeyCode
Scan code of key pressed
Shift
State of the Ctrl, Shift and Alt keys
Remarks
These events are essentially Microsoft standard mouse events, except that the x and y positions are specified as long integers representing display pixels rather than OLE_PIXELS.  This avoids the transformations applied by some clients such as Visual Basic, guaranteeing that the values are compatible with DicomObject’s scrolling and drawing functions. 
Due to a bug in Visual Basic, DicomViewer controls placed on a VB form do not receive events related to pressing arrow keys.
See Also