DicomObjects Reference
DicomObjects Reference / DicomViewer Object / DrawException Event
The index of the image in the Images collection which generated the error
The error message
Set to true if your code handles the error in a way which allows DicomObjects to re-attempt the drawing.
In This Topic
    DrawException Event
    In This Topic
    Description
    fired when an error occurs during drawing
    Syntax
    Visual Basic
    Public Event DrawException( _
       ByVal Index As Long, _
       ByVal Message As String, _
       ByRef Handled As Boolean _
    )
    Parameters
    Index
    The index of the image in the Images collection which generated the error
    Message
    The error message
    Handled
    Set to true if your code handles the error in a way which allows DicomObjects to re-attempt the drawing.
    Remarks

    This may be used to trap and handle errors which occur during drawing on the surface of the DicomViewer.

    If you have "handled" this error and wish DicomObjects to try again, set the Handled parameter (by ref) to true, but beware infinite loops.

    See Also