Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Show tick symbol on label

Tags:

c#

unicode

How can I show "√" (tick symbol) in label text?

like image 951
Timmi Avatar asked Aug 03 '09 08:08

Timmi


People also ask

How do I insert a tick symbol?

Go to Insert > Advanced Symbol > Symbols. Choose the checkmark symbol that you want. Select Insert.

How do I print a tick mark?

On the Home tab, in the Font section, click the Font drop-down list and select the Wingdings font. Create a check mark symbol by pressing and holding Alt , and then typing 0252 using the numeric keypad on the right side of the keyboard.

Where is the tick on symbols?

Option 2: Insert a tick or a cross using the Symbol menu You'll find it under the Insert menu, which is on the ribbon at the top of the screen. Click on Symbol and choose More Symbols. Change the font to Wingdings in the Font select box. Scroll to the bottom, and you'll find two different styles of ticks and crosses.


1 Answers

This code will do it for you:

LblTick.Text  = ((char)0x221A).ToString(); 

Edit:

or even easier:

lblTick.Text = "\u221A"; 

Edit 2:

And, as pointed out in a comment, that code (221A) is actually a square root symbol, not a tick. To use the true tick mark, you can use the following:

lblTick.Text = "\u2713"; 

or for a heavy tick mark, you can use the following (but you may get font issues with this one):

lblTick.Text = "\u2714"; 

(Credit to @Joey for that comment!)

like image 75
Sk93 Avatar answered Oct 05 '22 04:10

Sk93