Visual Basic (Declaration) | |
---|---|
Public Function New( _ ByVal errorCode As UserErrorCode _ ) |
Visual Basic (Usage) | Copy Code |
---|---|
Dim errorCode As UserErrorCode Dim instance As New UserErrorEventArgs(errorCode) |
C# | |
---|---|
public UserErrorEventArgs( UserErrorCode errorCode ) |
Parameters
- errorCode
- Error code for the event
Uses the UserErrorCode enumeration.
csharp | Copy Code |
---|---|
private void control_UserError(object sender, FarPoint.Win.Input.UserErrorEventArgs e) { Messagebox.Show(Convert.ToString(e.ErrorCode)); } |
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); End Sub |
Target Platforms: Windows 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8