Version

SpellCheckDialogOpening Event

Fired when the spell checking dialog is about to display.
Syntax
'Declaration
 
Public Event SpellCheckDialogOpening As SpellCheckDialogOpeningEventHandler
public event SpellCheckDialogOpeningEventHandler SpellCheckDialogOpening
Event Data

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

PropertyDescription
Cancel Gets or sets whether or not to cancel the showing of the default spell check dialog.
SpellCheckDialog Gets or sets the spell check dialog to display to the user.
SpellCheckTarget (Inherited from Infragistics.Win.UltraWinSpellChecker.SpellCheckTargetEventArgs)Gets the object which was spell checked.
Remarks
In the event handler for this event, the showing of the default dialog can be cancelled.
Example
This sample shows how to prevent the showing of the spell check dialog.

For an overview of how to handle events in Visual Basic or Visual C#, see Event Handlers in Visual Basic and Visual C#. For specific information and code examples illustrating how to consume events in your application, see Consuming Events in the .NET Framework Developer's Guide.

Imports Infragistics.Win.UltraWinSpellChecker

'Keep a flag which determines whether or not to prevent the spell check dialog from showing
	Private preventSpellCheckDialogOpenning As Boolean = True

Private Sub ultraSpellChecker1_SpellCheckDialogOpening(ByVal sender As Object, ByVal e As SpellCheckDialogOpeningEventArgs) Handles ultraSpellChecker1.SpellCheckDialogOpening
	'Don't allow the spell check dialog to show if the flag is set to true
	e.Cancel = Me.preventSpellCheckDialogOpenning
End Sub
using System.Windows.Forms;
using Infragistics.Win.UltraWinSpellChecker;

//Keep a flag which determines whether or not to prevent the spell check dialog from showing
private bool preventSpellCheckDialogOpenning = true;

private void ultraSpellChecker1_SpellCheckDialogOpening( object sender, SpellCheckDialogOpeningEventArgs e )
{
	//Don't allow the spell check dialog to show if the flag is set to true
	e.Cancel = this.preventSpellCheckDialogOpenning;
}
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, 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