Spread Windows Forms 8.0 Product Documentation
UserErrorEventArgs Constructor(UserErrorCode,String)
Example 


Error code for the event
Uses the UserErrorCode enumeration.

Additional error information

Creates a UserErrorEventArgs object with the specified code and information.
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
Error code for the event
Uses the UserErrorCode enumeration.
errorText

Additional error information

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
Requirements

Target Platforms: Windows 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8

See Also

Reference

UserErrorEventArgs Class
UserErrorEventArgs Members
Overload List

 

 


Copyright © GrapeCity, inc. All rights reserved.