Results 1 to 11 of 11

Thread: [RESOLVED] Symbols in Code.

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    May 2006
    Posts
    426

    Resolved [RESOLVED] Symbols in Code.

    I was wondering, is there a way i can embedd a symbol in Code so that i show it in a label?
    I would like to show the small Zero Symbol for degrees in a lable.

  2. #2
    PowerPoster sparrow1's Avatar
    Join Date
    May 2005
    Location
    Globetrotter
    Posts
    2,820

    Re: Symbols in Code.

    Quote Originally Posted by maps
    I was wondering, is there a way i can embedd a symbol in Code so that i show it in a label?
    I would like to show the small Zero Symbol for degrees in a lable.
    Hi,

    The Keycode number for that small ° is number 176

    Wkr,

    sparrow1
    Wkr,
    sparrow1

    If I helped you, don't forget to Rate my post. Thank you

    I'm using Visual Studio.Net 2003 and
    2005
    How to learn VB.Net Create setup with VB 2005 Drawing for beginners VB.Net Tutorials GDI+ Tutorials
    Video's for beginners

  3. #3
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,222

    Re: Symbols in Code.

    Just copy the character from the character map and paste it where you want it. You'll probably have to save your code file as Unicode after that but it's never been a problem for me.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  4. #4

    Thread Starter
    Hyperactive Member
    Join Date
    May 2006
    Posts
    426

    Re: Symbols in Code.

    Thanks All. 176 will do..but it looks a real dot. May be its the fornt size.

  5. #5

    Thread Starter
    Hyperactive Member
    Join Date
    May 2006
    Posts
    426

    Re: Symbols in Code.

    Yap. it was the Font Size. Thanks.

  6. #6

    Thread Starter
    Hyperactive Member
    Join Date
    May 2006
    Posts
    426

    Re: Symbols in Code.

    Sparrow. How did you get that character code. Its not there in my charts

  7. #7
    PowerPoster kfcSmitty's Avatar
    Join Date
    May 2005
    Posts
    2,248

    Re: [RESOLVED] Symbols in Code.

    http://www.lookuptables.com/

    Has all ASCII Codes. Are you sure you didnt want 167, as opposed to 176?

  8. #8
    PowerPoster sparrow1's Avatar
    Join Date
    May 2005
    Location
    Globetrotter
    Posts
    2,820

    Re: Symbols in Code.

    Quote Originally Posted by maps
    Sparrow. How did you get that character code. Its not there in my charts
    Hi maps,

    I found a list via google and I thought it was very usefull.
    Here's the link;

    http://www.hektra.nl/info/asci.html

    I hope it helps you to!

    Wkr,

    sparrow1
    Wkr,
    sparrow1

    If I helped you, don't forget to Rate my post. Thank you

    I'm using Visual Studio.Net 2003 and
    2005
    How to learn VB.Net Create setup with VB 2005 Drawing for beginners VB.Net Tutorials GDI+ Tutorials
    Video's for beginners

  9. #9

    Thread Starter
    Hyperactive Member
    Join Date
    May 2006
    Posts
    426

    Re: [RESOLVED] Symbols in Code.

    No 176 is the one that works in my VS 2005.Thats why am asking where sparrow got that one because, in my MSDN it gives it as 248!!!??

  10. #10
    PowerPoster sparrow1's Avatar
    Join Date
    May 2005
    Location
    Globetrotter
    Posts
    2,820

    Re: [RESOLVED] Symbols in Code.

    Quote Originally Posted by kfcSmitty
    http://www.lookuptables.com/

    Has all ASCII Codes. Are you sure you didnt want 167, as opposed to 176?
    Hi,

    In the list I'm using then the number 167 gives me this letter: § and like I wrote before the number 176 gives me: °

    wkr,

    sparrow1
    Wkr,
    sparrow1

    If I helped you, don't forget to Rate my post. Thank you

    I'm using Visual Studio.Net 2003 and
    2005
    How to learn VB.Net Create setup with VB 2005 Drawing for beginners VB.Net Tutorials GDI+ Tutorials
    Video's for beginners

  11. #11
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,222

    Re: [RESOLVED] Symbols in Code.

    The Windows Character Map also says 176.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width