DicomObjects Reference
DicomObjects Reference / DicomViewer Object / KeyPress Event
ASCII code of key generated
KeyPress Event
Description
Fired on a key press
Syntax
Visual Basic
Public Event KeyPress( _
   ByRef KeyAscii As Integer _
)
Parameters
KeyAscii
ASCII code of key generated
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