Display Extended Characters From Fonts

DroopyPawn
09-05-2003, 10:41 PM
Is there a way to show the extended characters in a font in VB? For example, the Times New Roman font has all the normal characters (letters, numbers, symbols) and then a lot of squiggly looking characters - probably from another language. How can I display those in a VB label or textbox. Is it possible?

passel
09-05-2003, 10:53 PM
Use Chr$(128) to Chr$(255) to access the higher characters.

You may want to run your program, hit the pause ||
and type the following in your immediate window to see the characters.

for i = 128 to 255: form1.print i;chr$(i):next

But these may not be the ones in you picturebox or text box.

You might want to create a new project and add to the click event
on your form.
Private Sub Form_Click()
Cls
For i = 128 To 255:
Print i; " "; Chr$(i), " ";
If i Mod 6 = 0 Then Print
Next
End Sub


to see the characters on your form.

DroopyPawn
09-05-2003, 11:05 PM
I can get those characters. I'm talking about the ones beyond 255.
gs

passel
09-05-2003, 11:28 PM
You're talking unicode. That's a bit harder. Search for "unicode"
and "Visual Basic" on the web, and perhaps on this board, athough I
didn't try on this board.
Here's a link from Microsoft which gives a simple example.

http://support.microsoft.com/default.aspx?scid=http://support.microsoft.com:80/support/kb/articles/q193/5/40.asp&NoWebContent=1

mhikmet
08-23-2004, 06:42 AM
You're talking unicode. That's a bit harder. Search for "unicode"
and "Visual Basic" on the web, and perhaps on this board, athough I
didn't try on this board.
Here's a link from Microsoft which gives a simple example.

http://support.microsoft.com/default.aspx?scid=http://support.microsoft.com:80/support/kb/articles/q193/5/40.asp&NoWebContent=1


:) Thanks for that It solved my problems too
Many thanks again

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum