Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Infinity symbol

1,388 views
Skip to first unread message

Bob

unread,
Sep 5, 2008, 10:09:01 PM9/5/08
to
Hi Everyone:

Does anyone know how to display the infinity symbol in a textbox in VB 6.0?
Thanks for your help.

Bob


Norm Cook

unread,
Sep 6, 2008, 8:46:41 AM9/6/08
to
"Bob" <som...@me.com> wrote in message
news:egojEW8D...@TK2MSFTNGP03.phx.gbl...

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


PeterD

unread,
Sep 6, 2008, 8:49:20 AM9/6/08
to


(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?

MikeD

unread,
Sep 6, 2008, 10:08:01 AM9/6/08
to

"PeterD" <pet...@hipson.net> wrote in message
news:hou4c4doo75ol11eu...@4ax.com...

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 Kunze

unread,
Sep 6, 2008, 1:26:05 PM9/6/08
to
MikeD schrieb:

> Bob, to expand on Norm's idea, you might have to use a RichTextBox so that
> you can use 2 different fonts.
Another option would be to use a unicode textbox and a unicode font.
However, this would work on Windows NT based systems only.

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

unread,
Sep 6, 2008, 1:58:58 PM9/6/08
to
It is possible.

Bob

"PeterD" <pet...@hipson.net> wrote in message
news:hou4c4doo75ol11eu...@4ax.com...

Bob

unread,
Sep 6, 2008, 2:00:47 PM9/6/08
to
Thanks Mike.

Bob

"MikeD" <nob...@nowhere.edu> wrote in message
news:%23Jqy6nC...@TK2MSFTNGP03.phx.gbl...

PeterD

unread,
Sep 6, 2008, 4:31:46 PM9/6/08
to
On Sat, 6 Sep 2008 10:08:01 -0400, "MikeD" <nob...@nowhere.edu> wrote:


>
>Huh? Chr$(236) is this: ě
>

Yes, but 'originally' it was defined as the infinity symbol. Then
someone came along and changed it! <g>

Ryan

unread,
Sep 16, 2009, 2:20:45 PM9/16/09
to
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.

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

Ryan

unread,
Sep 16, 2009, 2:21:26 PM9/16/09
to
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.

Posted as a reply to:

Infinity symbol

Hi Everyone:

Bob

EggHeadCafe - Software Developer Portal of Choice

Michael Cole

unread,
Sep 16, 2009, 8:20:18 PM9/16/09
to
Ryan <Ryan> wrote in message
<news:2009916142044...@benesysinc.com>

> 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


MikeD

unread,
Sep 17, 2009, 6:31:09 PM9/17/09
to

"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

Ralph

unread,
Sep 17, 2009, 8:42:17 PM9/17/09
to

"MikeD" <nob...@nowhere.edu> wrote in message
news:O6bCWa%23NKH...@TK2MSFTNGP04.phx.gbl...

>
> >>
> >> 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)
>
>
> What if you want the infinity symbol AND "regular" text in the textbox?
>

Then you are scr*wed.

You can replace the VB TextBox with one that supports Unicode.

-ralph


Nobody

unread,
Sep 22, 2009, 12:08:38 PM9/22/09
to
Next time post directly to the newsgroup. Here is a link:

news://msnews.microsoft.com/microsoft.public.vb.general

Dennis Tucker

unread,
Oct 10, 2009, 2:18:36 AM10/10/09
to
You would need to either find a font that includes both or make a custom
font of your own.

Dennis

"MikeD" <nob...@nowhere.edu> wrote in message

news:O6bCWa#NKHA...@TK2MSFTNGP04.phx.gbl...

0 new messages