[RESOLVED] How to insert unicode character in a Richtextbox via code
Hi guys :wave:
I have a TrueType font in my PC. And there are some unicode characters in it which I want to insert it into my RichtTextBox. The CharMap in WindowsXP shows the unicode character as U+00CC and to the right, it also displays the KeyStroke as Alt+0204
So, how do I insert this unicode character in RichTextBox ? Also, if I'm going to distribute this small program along with this particular font, will this end system can easily display the unicode characters ? Or do I have to set any regional settings in that PC too ? :confused:
Thanks :wave:
Re: How to insert unicode character in a Richtextbox via code
Convert.ToChar will create a Char from an Integer containing a Unicode value. You can then set the SelectionStart and SelectedText properties of the RichTextBox to insert that character where you want it. You can also paste a character straight from the Character Map into your source code.
Re: How to insert unicode character in a Richtextbox via code