473,473 Members | 1,607 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Inserting Check mark into RichTexBox

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
3 32279
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

11
by: Thomas Guettler | last post by:
Hi, Simple excerise: You have a sorted list of integers: l= and you should fill all gaps: result ==
7
by: Jared Evans | last post by:
I developed a console application that will continually check a message queue to watch for any incoming data that needs to be inserted into MS SQL database. What would be a low-cost method I...
6
by: sam | last post by:
I have to import data into a empty database, that has many tables. some tables have to be inserted first than others due to the foreign keys. How do I find out the order of the tables that I...
3
by: Joachim Klassen | last post by:
Hi all, first apologies if this question looks the same as another one I recently posted - its a different thing but for the same szenario:-). We are having performance problems when...
4
by: Terry | last post by:
Hello, I am designing a form from scratch and need to know how to get a Check Box(PASS)to automatically update when the data in a Text Box (MARK), in the same form, is >=24. Using the Event...
8
by: MA P | last post by:
Hi! Need help. I want to insert values from textbox-based input and upon clicking the Create button, these command lines will run. It didn't work! It points to the "test.Insert()" line that...
12
by: Marcus Kwok | last post by:
I am not sure if this is something that is covered by the Standard, or if it's an implementation detail of my Standard Library. I am reading in a large amount of data into a std::set. There is...
1
by: Eng Teng | last post by:
How to control size of length in richtexbox per line ? Regards, Tee
6
by: Bunty | last post by:
I want to insert values in the database.If i insert values one by one then it works till 4 or 5 fields then after it gives error.In my database there are more than 20 field.Pls help me.
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.