.Net TextBox-like Control that Renders HTML

Started by
0 comments, last by Telamon 20 years ago
Hi. Right now I''m using a RichTextBox control to display some dialog for an AI experiment I am doing (a Mafia game). I would like to have text writen by different speakers be printed in different colors and to have the option of Boldfacing or Italicizing text. I know that the RichTextBox control supports this, but the format specifiers are a pain in the ass. I''d much rather have a control that I can send HTML code to and have it turn that code into colorful text. I don''t really care if it handles much else, though I suppose support for tables and images would be handy. It seems like I could possibly use the InternetExplorer Control for this - if I use this control in my programs, do I have to distribute extra stuff, or will everyone already have it installed? Also the IE Control has much more crap in it than I really need. I was wondering if anyone knows of a Control I could download that will do what I want? It doesn''t sound to difficult to code, I might give it a try if no one has any helpful input. Maybe the easiest thing to do would be to make a new control that inherits from RichTextControl and add a HTML->RTF1.6 translation layer. Help? ---------------------------------------- Let be be finale of seem, seems to me. ---------------------------------------- Coding: http://www.stanford.edu/~jjshed/coding Miscellany: http://www.stanford.edu/~jjshed

Shedletsky's Bits: A Blog | ROBLOX | Twitter
Time held me green and dying
Though I sang in my chains like the sea...

Advertisement
Maybe the MSHTML control is what you are looking for. There is an excellent example at http://www.itwriting.com/htmleditor

This topic is closed to new replies.

Advertisement