I am writing a c# winforms application which needs to enable its users to add content to its interface. I have looked at the RichTextBox and the WebBrowser controls, but I'm not sure which route to take. The content would contain text with newlines and several tags that will include images which are in the project resources.
This is my text [niceimage] and it
includes an image and another: [smiley]
The disadvantage of the RichTextBox control is that I would need to craft richtext by hand which I am not familiar with. Also the .net framework does not have the functionality to make Metafiles from Images, the format RTF uses for embedding images.
The problems I had with the WebBrowser is that I have no idea how to load a page via a stream. I tried the DocumentStream to no avail. Also I need to include images which would need embedded images in the html string, which might not be supported. Another issue is that the WebBrowser control might be too heavy as the control will appear in several places in the application. It als needs to load very quickly for the application to feel snappy.