SpreadsheetGear 2017
ShowError Event (WorkbookView)






SpreadsheetGear.Windows.Controls Namespace > WorkbookView Class : ShowError Event
This event is sent to the active WorkbookView just before an error message is to be displayed to the user.
Syntax
'Declaration
 
<System.ComponentModel.CategoryAttribute("Behavior")>
<System.ComponentModel.DescriptionAttribute("Occurs just before an error message is to be displayed to the user.")>
Public Event ShowError As ShowErrorEventHandler
'Usage
 
Dim instance As WorkbookView
Dim handler As ShowErrorEventHandler
 
AddHandler instance.ShowError, handler
[System.ComponentModel.Category("Behavior")]
[System.ComponentModel.Description("Occurs just before an error message is to be displayed to the user.")]
public event ShowErrorEventHandler ShowError
public event ShowError: ShowErrorEventHandler; 
In JScript, you can handle the events defined by another class, but you cannot define your own.
[System.ComponentModel.Category("Behavior")]
[System.ComponentModel.Description("Occurs just before an error message is to be displayed to the user.")]
public: __event ShowErrorEventHandler* ShowError
[System.ComponentModel.Category("Behavior")]
[System.ComponentModel.Description("Occurs just before an error message is to be displayed to the user.")]
public:
event ShowErrorEventHandler^ ShowError
Event Data

The event handler receives an argument of type ShowErrorEventArgs containing data related to this event. The following ShowErrorEventArgs properties provide information specific to this event.

PropertyDescription
Gets or sets the caption of the error message box.  
Gets or sets a value indicating whether the event was handled.  
Gets or sets the message to display in the error message box.  
Remarks

The WorkbookView.ShowError event is sent to the active WorkbookView just before an error message is to be displayed to the user, and provides the event handler with the ability to modify the error message text and caption or handle the event.

The WorkbookView.ShowError event is always invoked on the thread which created the workbook view control, and a lock is always acquired on the workbook set associated with the workbook view control before WorkbookView.ShowError is invoked.

Requirements

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

See Also