473,499 Members | 1,658 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

C Sharp stx and etx characters visible

Hallo,
In an application that I'm creating I want to display ☻ and ♥ in a
standard textbox. In this message they are displayed correctly. But
when I'm programming in Visual Studio my textbox displays a square. How
can i solve this minor problem.
PS
I tried different fonts including Lucinda Console, but i still see
squares or pipes like ( | )

Please give me a hint

Frank van der Horst
Netherlands

May 21 '06 #1
2 6552
Frank,

I assume you used dingbats or something like that to show those symbols.
For a textbox, you won't really be able to show this, since the font doesn't
have actual characters (you are limited to one font).

You will either have to custom paint the text, or use something else,
like a webbrowser control or rich text box which you can use to display text
in more than one font.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

<Fr**********@gmail.com> wrote in message
news:11**********************@g10g2000cwb.googlegr oups.com...
Hallo,
In an application that I'm creating I want to display ? and ? in a
standard textbox. In this message they are displayed correctly. But
when I'm programming in Visual Studio my textbox displays a square. How
can i solve this minor problem.
PS
I tried different fonts including Lucinda Console, but i still see
squares or pipes like ( | )

Please give me a hint

Frank van der Horst
Netherlands
May 21 '06 #2
Fr**********@gmail.com wrote:
[displaying smiley and heart symbol]


If you're using the low character values (the actual STX and ETX
values in ASCII), they won't render correctly because they are control
codes - even though I remember that MS-DOS used to display symbols for
some of them.

I think you should be using the Unicode characters '\u263b' (black
smiling face) and '\u2665' (black hearts suit).

Eq.
May 21 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1588
by: Stuart Newton | last post by:
We have just migrated a pile of ASP-driven content-managed websites from Win2000/SQL7 to Win2003/SQL2000 and noticed that, on some of them, certain characters such as the pound sign (£), 66..99...
4
2487
by: Hai Nguyen | last post by:
I'm learning C sharp and do not like vb much. I'm creatiing a wepage using panel to test myself. I tried to use these code below, which is written in VB, and to transform them to c sharp but I got...
2
3868
by: HishHish | last post by:
I have a Java code that I want to convert it to C-sharp in order to put it in my ASP.NET web application. I used the JLCA (Java Language Conversion Assistant) for conversion, but it gave me many...
1
6907
by: j | last post by:
Hi, I've been trying to do line/character counts on documents that are being uploaded. As well as the "counting" I also have to remove certain sections from the file. So, firstly I was working...
2
1854
by: Micah | last post by:
Hi, I'm looking for a tool to do the following 2 things: 1) Given a string (ie. file, std input, whatever), replace all whitespace characters with visible characters (like their Unicode value...
20
2583
by: windandwaves | last post by:
Hi Folk I am a PHP programmer, but I like to learn c-sharp as it seems to be in hot demand around here. My questions are: - how does c-sharp relate to PHP - do you like c-sharp and its...
3
2636
by: somebody | last post by:
Hi all, I have been working on a php script lately that merges results from a db and an xml source and then populates a PDF through FDF. I have gotten nearly everything to work except multi line...
3
2386
by: Gandalf | last post by:
Sharp effect is one of the photoshop effect on letters. some one a javascript script that create the same effect? thanks
6
4419
by: Joe | last post by:
Every thing I have fount was for C Sharp 2005, and I can't get any thing to work. Can some some show me a code for a telnet server in C Sharp 2008 that will a allow more then one connection.
0
7132
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
7009
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
7178
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
7390
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5475
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,...
1
4919
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4602
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3103
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
302
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.