Spread Windows Forms 12.0 Product Documentation
UserErrorEventArgs Constructor(UserErrorCode)
Example 


FarPoint.Win Assembly > FarPoint.Win.SuperEdit Namespace > UserErrorEventArgs Class > UserErrorEventArgs Constructor : UserErrorEventArgs Constructor(UserErrorCode)
Error code for the event
Uses the UserErrorCode enumeration.
Creates a UserErrorEventArgs object with the specified code.
Syntax
'Declaration
 
Public Function New( _
   ByVal errorCode As UserErrorCode _
)
'Usage
 
Dim errorCode As UserErrorCode
 
Dim instance As New UserErrorEventArgs(errorCode)
public UserErrorEventArgs( 
   UserErrorCode errorCode
)

Parameters

errorCode
Error code for the event
Uses the UserErrorCode enumeration.
Example
private void control_UserError(object sender, FarPoint.Win.Input.UserErrorEventArgs e)
{
Messagebox.Show(Convert.ToString(e.ErrorCode));
}
Private Sub control_UserError(ByVal sender As Object, ByVal e As FarPoint.Win.Input.UserErrorEventArgs) Handles control.UserError
  Messagebox.Show(e.ErrorCode);
End Sub
See Also

Reference

UserErrorEventArgs Class
UserErrorEventArgs Members
Overload List