SpreadsheetGear
ShowError Event
See Also  Send Feedback
SpreadsheetGear.Windows.Forms 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

Visual Basic (Declaration) 
<DescriptionAttribute("Occurs just before an error message is to be displayed to the user.")>
<CategoryAttribute("Behavior")>
Public Event ShowError() As ShowErrorEventHandler
C# 
[DescriptionAttribute("Occurs just before an error message is to be displayed to the user.")]
[CategoryAttribute("Behavior")]
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
Caption Gets or sets the caption of the error message box.
Handled Gets or sets a value indicating whether the event was handled.
Message Gets 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

Platforms: x86 and x64 versions of Windows 2000, Windows XP, Windows Vista, Windows 7, Windows Server 2003 (including R2) and Windows Server 2008 (including R2). SpreadsheetGear 2009 requires the Microsoft .NET Framework 2.0 and supports .NET 3.0 and .NET 3.5.

See Also

Copyright © 2003-2009 SpreadsheetGear LLC. All Rights Reserved.Help Powered by Innovasys   
SpreadsheetGear is a registered trademark of SpreadsheetGear LLC.
Microsoft, Microsoft Excel and Visual Studio are trademarks or registered trademarks of Microsoft Corporation.