I have a custom control that I want to enable spell checking on. I've created the control and am able to check the spelling using the folowing code:
frmMain.UltraSpellChecker1.ShowSpellCheckDialog(WinHTMLSpellEditor1)
But any changes are not passed back to the control. How do I capture the suggested changes and then pass them back to the control? Here is my custom control:
Imports Infragistics.Win.UltraWinSpellCheckerPublic Class WinHTMLSpellEditor Inherits WinHTMLEditor.HTMLEditor Implements Infragistics.Win.UltraWinSpellChecker.IProvideTextBox Protected Overrides Sub OnPaint(ByVal e As System.Windows.Forms.PaintEventArgs) MyBase.OnPaint(e)
'Add your custom paint code here End Sub Friend WithEvents tb As System.Windows.Forms.TextBox Public ReadOnly Property TextBox() As TextBoxBase Implements IProvideTextBox.TextBox
'Return the rich text box Get tb = New TextBox tb.Text = Me.BodyText Return tb End Get End Property
End Class
Hello,
I've attached a sample project that demonstrates using IProvideTextBox with a non-Infragistics control. Please let me know if it helps you to resolve your issue.