Visual Basic (Declaration) | |
---|---|
Public Function New( _ ByVal errorCode As UserErrorCode, _ ByVal errorText As String _ ) |
Visual Basic (Usage) | Copy Code |
---|---|
Dim errorCode As UserErrorCode Dim errorText As String Dim instance As New UserErrorEventArgs(errorCode, errorText) |
C# | |
---|---|
public UserErrorEventArgs( UserErrorCode errorCode, string errorText ) |
Parameters
- errorCode
- Error code for the event
Uses the UserErrorCode enumeration. - errorText
Additional error information
csharp | Copy Code |
---|---|
private void control_UserError(object sender, FarPoint.Win.Input.UserErrorEventArgs e) { Messagebox.Show(Convert.ToString(e.ErrorCode) + e.ErrorInfo); } |
Visual Basic | Copy Code |
---|---|
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 |
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2