Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I display the infinity character/symbol in a textbox (any string really) in C#?

How do I display this symbol as a character in a string (In my instance a datagridview textbox) using c#.NET? Is there even a unicode representation for infinity or am I out of luck and need to use an image?

enter image description here

like image 490
Tyler Benzing Avatar asked Dec 05 '22 19:12

Tyler Benzing


2 Answers

Just use the unicode syntax in C#

txt.Text = "\u221E";

See for example: http://www.fileformat.info/info/unicode/char/221e/index.htm

like image 199
Flat Eric Avatar answered Dec 08 '22 07:12

Flat Eric


Copy/paste from here or other locations on the Internet: ∞ I just did this in C# and it works.

tbGreekChar.Text = "∞";

like image 27
CProgrammer Avatar answered Dec 08 '22 08:12

CProgrammer