Does anyone know a good example of how to convert HTML code into a richtextbox?
Printable View
Does anyone know a good example of how to convert HTML code into a richtextbox?
Parse the code and translate to normal words, and put into the 'box. Dunno about pictures :(
I tried that and its hard, what i want to do is remove the html tags but still retain the original colors and all the bold, underline, etc. formats of it.
If all you want to do is display the basic HTML offline why not use a MS Word object and open the HTML file in that?
Another way of putting the problem is, say i have one richtextbox with the words "Test" in green. I need to take that and retain its color and bring it into the main richtextbox. Sort of like aim's chat room. I have tried MainRichBox.textrtf = MainRichBox.textrtf & RichTextBox1.textrft, but it doesnt work. I have been messing around with it and found that you need to trim off the last part "\par }" of the main box and somehow add the colorcoding and all the rest of the 2nd textbox. But i am having a lot of trouble with this part.