Displaying non-characters in text

For an app I'm building, I have a few icons that need to be placed in blocks of text.  As far as I know, they aren't in any standard character sets.  How should I go about doing this   It would be something like:

"Find the tab labled with a <<green square>>."  I need to actually display the green square or red circle or blue triangle.  Any ideas


Answer this question

Displaying non-characters in text

  • francis_zk

    You could create a user control and put a label and a picturebox on it. Then, you can either draw the figures yourself (in the picturebox.paint event) or put a bitmap on it.
  • George Hannah

    Well, it's going to appear at arbitrary locations throughout numerous blocks of text.  In fact, I really need a way for users to be able to insert the character at will while editing a block of text.
  • Alex DeJarnatt - MSFT

    HTML does that, but it is definitely clumsy to include a viewer in your app. You may have to build your own texteditor using MeasureCharacterRanges.
  • Displaying non-characters in text