SpreadsheetGear 2012
ShowError Event (WorkbookView)






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
CaptionGets or sets the caption of the error message box.  
HandledGets or sets a value indicating whether the event was handled.  
MessageGets or sets the message to display in the error message box.  
Remarks

The 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 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 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

Reference

WorkbookView Class
WorkbookView Members

Send Feedback