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

C Sharp stx and etx characters visible

P: n/a
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
Share this Question
Share on Google+
2 Replies


P: n/a
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

P: n/a
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 discussion thread is closed

Replies have been disabled for this discussion.