Results 1 to 12 of 12

Thread: having ® in a command button

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Jun 2000
    Location
    East Providence, RI
    Posts
    1,715
    how do I put things like ® (alt + 0 + 1 + 7 + 4) into a text box?
    NXSupport - Your one-stop source for computer help

  2. #2
    _______ HeSaidJoe's Avatar
    Join Date
    Jun 1999
    Location
    Canada
    Posts
    3,946

    <?>

    as a string?
    Text1.Text = "® (alt + 0 + 1 + 7 + 4)"
    "A myth is not the succession of individual images,
    but an integerated meaningful entity,
    reflecting a distinct aspect of the real world."

    ___ Adolf Jensen

  3. #3

    Thread Starter
    Frenzied Member
    Join Date
    Jun 2000
    Location
    East Providence, RI
    Posts
    1,715
    no, I'm sorry, I ment command button
    NXSupport - Your one-stop source for computer help

  4. #4
    _______ HeSaidJoe's Avatar
    Join Date
    Jun 1999
    Location
    Canada
    Posts
    3,946

    <?>

    Command1.Caption = "® (alt + 0 + 1 + 7 + 4)"
    "A myth is not the succession of individual images,
    but an integerated meaningful entity,
    reflecting a distinct aspect of the real world."

    ___ Adolf Jensen

  5. #5

    Thread Starter
    Frenzied Member
    Join Date
    Jun 2000
    Location
    East Providence, RI
    Posts
    1,715
    thanks, I was tring to put it in the propertiy window, and it didn't work, I never thought about the code, thanks
    NXSupport - Your one-stop source for computer help

  6. #6
    PowerPoster BruceG's Avatar
    Join Date
    May 2000
    Location
    New Jersey (USA)
    Posts
    2,657
    You can do it in the property window by using the Windows "Character Map" program. Run that program, find the character you want, and Copy it. Go back into VB and paste it into the Caption property in the property window.
    "It's cold gin time again ..."

    Check out my website here.

  7. #7

    Thread Starter
    Frenzied Member
    Join Date
    Jun 2000
    Location
    East Providence, RI
    Posts
    1,715
    I tried that, it didn't work... also I can't get the first ascii character to appear in a command button in any way
    NXSupport - Your one-stop source for computer help

  8. #8
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    What - character 0? You're not allowed to, as it is used to mark the end of a string in C++, which is what VB is written in.
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

  9. #9
    PowerPoster BruceG's Avatar
    Join Date
    May 2000
    Location
    New Jersey (USA)
    Posts
    2,657
    Dimava - I beg to differ, but the character map thing will work, as I just did it. In character map, you have to "select" first, then "copy". In the VB property window for the command button caption, you should then be able to paste.
    "It's cold gin time again ..."

    Check out my website here.

  10. #10

    Thread Starter
    Frenzied Member
    Join Date
    Jun 2000
    Location
    East Providence, RI
    Posts
    1,715
    ok... how about characters 1-18 they dont work either
    NXSupport - Your one-stop source for computer help

  11. #11
    Guest
    That this ASCII business depends on which font to use. Try switching to a font such as Times New Roman and things should be cleared up.

  12. #12
    Conquistador
    Join Date
    Dec 1999
    Location
    Australia
    Posts
    4,527
    try this also:
    Code:
    Command1.Caption = "Microsoft" & Chr(174)
    easy!

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