cast richtextbox to textbox or windows rich box

2 posts, 0 answers
  1. John
    John avatar
    60 posts
    Member since:
    Nov 2006

    Posted 19 Mar 2013 Link to this post

    is there any way to cast a richtextbox to a windows richtextbox or a windows text box?  I'm using a 3rd party spell checker that requires one of those types of control.  

    for instance, the radtextbox can be cast to a text by with something like
    var tbTx = txtTxAdditionalNotes.TextBoxElement.TextBoxItem.HostedControl as TextBox;

    is there a way to do that with RichTextBox?

  2. Stefan
    Stefan avatar
    2891 posts

    Posted 22 Mar 2013 Link to this post

    Hello John,

    Thank you for writing.

    RadTextBox internally contains that standard TextBox and this is why you can access it from it, however, with RadRichTextBox such thing is not possible, since it does not host the standard TextBox.

    I hope this helps.

    All the best,
    the Telerik team
    WinForms Q1 2013 boasts PivotGrid, PDF Viewer, Chart enhancements and more. Check out all of the latest highlights.
  3. DevCraft R3 2016 release webinar banner
Back to Top