I need to convert an unicode to letter and then paste the letter into a textbox. So I have a code like this:
textBox1.Text = Convert.ToString(Convert.ToChar(letter_code));
I think this code line doesn't look good and there's another way to do the same thing. Is it?
Assuming letter_code
is of type int
, I'd probably cast to char
and call ToString
:
textBox1.Text = ((char) letter_code).ToString();
See more on this question at Stackoverflow