Inserting Check mark into RichTexBox

Inserting Check mark into RichTexBox

Post by QWw » Sun, 12 Dec 2004 23:55:03


Hello,
Sorry for the silly question: How do I insert Check Mark into RichTextBox? I
can find the ascii code for it.
Thanks
Alex
 
 
 

Inserting Check mark into RichTexBox

Post by QW5hbmRbTV » Mon, 13 Dec 2004 01:59:11

The checkmark symbol is found in the Font Wingdings, char code 252.

Rgds,
Anand M
http://www.yqcomputer.com/

 
 
 

Inserting Check mark into RichTexBox

Post by Jay B. Har » Mon, 13 Dec 2004 06:26:10

Al,
ASCII only has 127 characters in it, you could try either an ANSI or Unicode
character set to get a Check Mark.

As Anand suggests you can use Windings & many other symbol fonts have
plethora of check mark symbols in them.

Remember that .NET uses Unicode, You can use Character Map under "Start -
Programs - Accessories - System Tools" to search for characters (enable
Advance view first).

Searching for "Check" revels three potential Unicode characters from the
Arial Unicode MS font.
U+2611 - Ballot Box With Check
U+2713 - Check Mark
U+2714 - Heavy Check Mark

The "problem" with the Unicode characters is that not all fonts support all
Unicode code points... For example Arial Unicode MS font may not be
installed on your target system...

When I want to use one of the Unicode code points I normally use ChrW &
define a constant, something like:

Const BallotBoxWithCheck As Char = ChrW(&H2611)
Const CheckMark As Char = ChrW(&H2713)
Const HeavyCheckMark As Char = ChrW(&H2714)

Then I use one of the above constants where I want to use that character...

Hope this helps
Jay
 
 
 

Inserting Check mark into RichTexBox

Post by QWw » Mon, 13 Dec 2004 09:29:01

Thanks Jay and Anand. Great info.