Does anyone know how to display the infinity symbol in a textbox in VB 6.0?
Thanks for your help.
Bob
Set the font to Symbol & use Chr$(165)
BTW, the Character Map utility is handy for this
kind of thing: Start|Programs|Accessories|System Tools|Character Map
(Well, at least it is a control problem!)
Technically the ASCII symbol for infinity is supposed to be chr$(236).
However, remapping of the ASCII character set makes that character go
away... Do you need any other characters other than infinity in the
text box?
Huh? Chr$(236) is this: ě
The description from CharMap is "Latin Small Letter I with Grave". This is
also the character I found in all ANSI charts that I looked at.
The infinity symbol is a sideways 8. Norm got the character right, but that
solution is less than perfect if Bob needs to display "normal" characters as
well. I did find the infinity symbol in CharMap, but it's a unicode
character so unless a 3rd-party textbox that supports unicode is used,
Norm's idea might be the only one available. FYI, when I copied this
character from CharMap and pasted it into a TextBox, it just displayed a
question mark.
Bob, to expand on Norm's idea, you might have to use a RichTextBox so that
you can use 2 different fonts.
With RichTextBox1
.SelFontName = "Arial"
.SelText = "This is the infinity symbol: "
.SelFontName = "Symbol"
.SelText = Chr$(165)
End With
--
Mike
Microsoft MVP Visual Basic
Timo
--
www.TimoSoft-Software.de - Unicode controls for VB6
"Those who sacrifice freedom for safety deserve neither."
"Demokratie ist per Definition unsicher. Ihr Schutz entsteht aus der
Überzeugung, dass die demokratischen Kräfte überwiegen und sich – auf
demokratischem Wege – durchsetzen."
Bob
"PeterD" <pet...@hipson.net> wrote in message
news:hou4c4doo75ol11eu...@4ax.com...
Bob
"MikeD" <nob...@nowhere.edu> wrote in message
news:%23Jqy6nC...@TK2MSFTNGP03.phx.gbl...
>
>Huh? Chr$(236) is this: ě
>
Yes, but 'originally' it was defined as the infinity symbol. Then
someone came along and changed it! <g>
Posted as a reply to:
Infinity symbol
Hi Everyone:
Bob
EggHeadCafe - Software Developer Portal of Choice
WCF Workflow Services Using External Data Exchange
http://www.eggheadcafe.com/tutorials/aspnet/3d49fa0d-a120-4977-842a-6dafb17b6d74/wcf-workflow-services-usi.aspx
Posted as a reply to:
Infinity symbol
Hi Everyone:
Bob
EggHeadCafe - Software Developer Portal of Choice
> You are required to be a member to post replies. After logging in or
> becoming a member, you will be redirected back to this page.
Not if you post direct to the newsgroup...
>
> Does anyone know how to display the infinity symbol in a textbox in
> VB 6.0?
Change the font to Symbol and use chr$(165)
--
Regards
Michael Cole
"Michael Cole" <no...@invalid.com> wrote in message
news:u8#FpyyNK...@TK2MSFTNGP02.phx.gbl...
What if you want the infinity symbol AND "regular" text in the textbox?
--
Mike
Then you are scr*wed.
You can replace the VB TextBox with one that supports Unicode.
-ralph
Dennis
"MikeD" <nob...@nowhere.edu> wrote in message
news:O6bCWa#NKHA...@TK2MSFTNGP04.phx.gbl...