Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
835
Implementing the IProvideTextBox Interface
posted

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.UltraWinSpellChecker
Public 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

Parents
No Data
Reply Children
No Data