RichTextBox and ITextHost

M

Michael

I would like to draw RTF text inside my UserControl without actually having
a RichTextBox window. I have seen several articles discussing how to use
ITextHost and creating a windowless RichTextBox to accomplish just this.
(see
http://www.codeguru.com/Cpp/controls/richedit/windowless/article.php/c5367 ).

My question is: Does anybody have a clue as to how to create this ITextHost
interface in C#? I have searched high and low but have no info on this
(although I see a couple c++ articles). How does one get the definition for
this Interface in C# and possible go about creating a windowless
RichTextBox? (I am not above using unmanaged code for this if necessary).

Thanks in advance for any advice!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top