Fired when the spell checking dialog is about to display.
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.
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;
}
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