Celsius symbol in RichTextBox

Michał Ziober picture Michał Ziober · Oct 8, 2009 · Viewed 24.5k times · Source

I write windows application using C# and .NET2.0. In RichTextBox I would like to show Celsius symbol. How to do it? Is it possible?

Answer

Fredrik Mörk picture Fredrik Mörk · Oct 8, 2009

Do you mean Celsius symbol as in 37°C? If so you can simply put that character where it should be, I guess:

 richTextBox.Text = string.Format("{0}°C", degrees);

If you are looking for character codes (or just want to find character to copy/paste them), you can use the Character Map application in Windows (in Start -> Programs -> Accessories -> System Tools).