Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsVB SyntaxEnterprise DevelopmentDatabase AccessControlsCOMWin APICrystal ReportDeploymentGeneralGeneral 2
Related Topics
VB.NET / ASP.NETMS SQL ServerMS AccessOther Database ProductsMore Topics ...

VB Forum / Controls / September 2008



Tip: Looking for answers? Try searching our database.

Infinity symbol

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Bob - 06 Sep 2008 03:09 GMT
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 - 06 Sep 2008 13:46 GMT
> Hi Everyone:
>
> 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
PeterD - 06 Sep 2008 13:49 GMT
>Hi Everyone:
>
>Does anyone know how to display the infinity symbol in a textbox in VB 6.0?
>Thanks for your help.
>
>Bob

(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 - 06 Sep 2008 15:08 GMT
>>Hi Everyone:
>>
[quoted text clipped - 10 lines]
> 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

Signature

Mike
Microsoft MVP Visual Basic

Timo Kunze - 06 Sep 2008 18:26 GMT
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
Signature

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 - 06 Sep 2008 19:00 GMT
Thanks Mike.

Bob

>>>Hi Everyone:
>>>
[quoted text clipped - 33 lines]
>        .SelText = Chr$(165)
>    End With
PeterD - 06 Sep 2008 21:31 GMT
>Huh?  Chr$(236) is this:  ì

Yes, but 'originally' it was defined as the infinity symbol. Then
someone came along and changed it! <g>
Bob - 06 Sep 2008 18:58 GMT
It is possible.

Bob

>>Hi Everyone:
>>
[quoted text clipped - 10 lines]
> away... Do you need any other characters other than infinity in the
> text box?
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.