Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. "&" character in Visual Studio

"&" character in Visual Studio

Scheduled Pinned Locked Moved C#
tutorialcsharpvisual-studioquestion
4 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    AesopTurtle
    wrote on last edited by
    #1

    Hi, I'm trying to use the character "&" in a label control but it turns out to be an underscore under the character next to the "&". For example, i set text as "&ABC", it turns out to be "ABC". Any idea on how to use this character to make it appear as it is? Best Regards. KiT

    A S 3 Replies Last reply
    0
    • A AesopTurtle

      Hi, I'm trying to use the character "&" in a label control but it turns out to be an underscore under the character next to the "&". For example, i set text as "&ABC", it turns out to be "ABC". Any idea on how to use this character to make it appear as it is? Best Regards. KiT

      A Offline
      A Offline
      alexey N
      wrote on last edited by
      #2

      Try "&&ABC". Strange solution, but it works :)

      1 Reply Last reply
      0
      • A AesopTurtle

        Hi, I'm trying to use the character "&" in a label control but it turns out to be an underscore under the character next to the "&". For example, i set text as "&ABC", it turns out to be "ABC". Any idea on how to use this character to make it appear as it is? Best Regards. KiT

        S Offline
        S Offline
        shaluhyd
        wrote on last edited by
        #3

        try with double (&&) symbol.it will work

        1 Reply Last reply
        0
        • A AesopTurtle

          Hi, I'm trying to use the character "&" in a label control but it turns out to be an underscore under the character next to the "&". For example, i set text as "&ABC", it turns out to be "ABC". Any idea on how to use this character to make it appear as it is? Best Regards. KiT

          A Offline
          A Offline
          alexey N
          wrote on last edited by
          #4

          Also you can set property "UseMnemonic" to "false". Best regards, Alexey.

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups