Im trying to implement option in richTextBox to show graphical emoticons instead of text representation. So I'm basically looking option to replace eg ':)' string by corresponding picture.
Ive googled a lot and only easy / working solution Ive found was:
Clipboard.SetImage( Properties.Resources.angry );
richTextBox1.Paste();
But there is big disadvantage of this approach - it overwrites clipboard content, so might interfere user
Can anyone advise how to do that other way (without using clipboard) ?
I was also thinking about saving and restoring clipboard content after operation - but for this I couldn't find easy way either...
Any help / tips will be highly appreciated !
EDIT
Actually clipboard backup / restore was bad idea. Noticed sometime is being recognized by OS / AVs as 'dangerous' operation and resulted app crash
Still looking other way / better RTB (free) component ...
EDIT-2
I found working solution here: Insert Image at Cursor Position in Rich Text box
But still not 100% happy because image quality is being lost