Spread Windows Forms 18
FarPoint.Win Assembly / FarPoint.Win.SuperEdit Namespace / UserErrorEventArgs Class / UserErrorEventArgs Constructor / UserErrorEventArgs Constructor(UserErrorCode,String)
The user error code for the error that is being raised
Additional error information for the error that is being raised
Example


In This Topic
    UserErrorEventArgs Constructor(UserErrorCode,String)
    In This Topic
    Occurs when a user error state is created by the control
    Syntax
    'Declaration
     
    
    Public Function New( _
       ByVal errorCode As UserErrorCode, _
       ByVal errorText As String _
    )
    'Usage
     
    
    Dim errorCode As UserErrorCode
    Dim errorText As String
     
    Dim instance As New UserErrorEventArgs(errorCode, errorText)
    public UserErrorEventArgs( 
       UserErrorCode errorCode,
       string errorText
    )

    Parameters

    errorCode
    The user error code for the error that is being raised
    errorText
    Additional error information for the error that is being raised
    Example
    private void control_UserError(object sender, FarPoint.Win.Input.UserErrorEventArgs e)
    {
    Messagebox.Show(Convert.ToString(e.ErrorCode) + e.ErrorInfo);
    }
    Private Sub control_UserError(ByVal sender As Object, ByVal e As FarPoint.Win.Input.UserErrorEventArgs) Handles control.UserError
      Messagebox.Show(e.ErrorCode + e.ErrorInfo);
    End Sub
    See Also