Making sure special characters display correctly

G

Guest

I will admit it up front, ever since some version of DOS went global, I've
gotten a headache everytime I even contemplated codepages:)

I want to be able to display three special characters, in one case as the
password character, and in the other cases as the text on a small button in a
datagridview.

I've scanned over the postings and the recommended KB articles and if I
wanted to do a web page in Korean or process a document around in Hebrew, i
think i could do it. What I can't do is make the some simple code work:-(((

Essentially all I coded was

textbox.passwordchar = "☺" ' character is a smiley

My stupidity was selecting a font for the dialog that did not have ☺ in it.
(Verdana) Yet. it worked fine at the office. Out at the client site i got a
square box instead. I solved the problem by making sure all the relevant
controls used Arial even if the rest of the dialog was using Verdana.

So I have questions to help me understand what is going on.

My client is using XP in a Detroit suburb so there is nothing fancy going
on. What settings for the OS should I look at to see why it worked at the
office but not at their site? (Charmap for shows the stuff of interest just
fine. A test console app at their site shows the characters of interest just
fine. It's the windows app that has problems.)

I just repeated the exercise here at the office. With the font of the
textbox defaulting to verdana 9 pt - as confirmed by a msgbox display of the
font name - i get some appropriately scrunched up smiley face as I type. With
the font set at Arial 11 i get a big bold face as I type. QUESTION: What
mechanism is causing Framework to display a character that isn't in the font,
i.e. the scrunched smiley when the font is set to Verdana?

It gets even weirder. With the font set to verdana, i turned the password
character off (there is a check box for that, something I wish all programs
provided for the mornings we aren't typing quite right:). Then I copied some
Hebrew off charmap and pasted it into the textbox. It worked! I copied ▲►▼◄
and got the phenomenon I'm seeing here. The Up and Down arrows are in one
size and the left and right in a different size. QUESTION: What is going on
here?????

--
Regards,
Al Christoph
Senior Consultant
Three Bears Software, LLC
just right software @ just right prices @ 3bears.biz
Microsoft Certified Partner (ISV)
Coming soon: Windows Mail tools for Vista.
 
J

Jared

I find bug in framework every month..always have to find another way. And
..NET framework 3 is going to be same as 2.

connect.microsoft.com
 
G

Guest

Are you suggesting this is a bug?
--
Regards,
Al Christoph
Senior Consultant
Three Bears Software, LLC
just right software @ just right prices @ 3bears.biz
Microsoft Certified Partner (ISV)
Coming soon: Windows Mail for Vista.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top