This is a migrated thread and some comments may be shown as answers.

cast richtextbox to textbox or windows rich box

1 Answer 100 Views
RichTextBox (obsolete as of Q3 2014 SP1)
This is a migrated thread and some comments may be shown as answers.
John
Top achievements
Rank 1
John asked on 19 Mar 2013, 08:15 PM
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?

thanks!

1 Answer, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 22 Mar 2013, 12:44 PM
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,
Stefan
the Telerik team
WinForms Q1 2013 boasts PivotGrid, PDF Viewer, Chart enhancements and more. Check out all of the latest highlights.
Tags
RichTextBox (obsolete as of Q3 2014 SP1)
Asked by
John
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Share this question
or