By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
448,996 Members | 1,552 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 448,996 IT Pros & Developers. It's quick & easy.

Inserting Check mark into RichTexBox

P: n/a
Al
Hello,
Sorry for the silly question: How do I insert Check Mark into RichTextBox? I
can’t find the ascii code for it.
Thanks
Alex
Nov 21 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
The checkmark symbol is found in the Font Wingdings, char code 252.

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

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

Nov 21 '05 #2

P: n/a
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
"Al" <Al@discussions.microsoft.com> wrote in message
news:B0**********************************@microsof t.com...
Hello,
Sorry for the silly question: How do I insert Check Mark into RichTextBox?
I
can't find the ascii code for it.
Thanks
Alex

Nov 21 '05 #3

P: n/a
Al
Thanks Jay and Anand. Great info.

"Jay B. Harlow [MVP - Outlook]" wrote:
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
"Al" <Al@discussions.microsoft.com> wrote in message
news:B0**********************************@microsof t.com...
Hello,
Sorry for the silly question: How do I insert Check Mark into RichTextBox?
I
can't find the ascii code for it.
Thanks
Alex


Nov 21 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.