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. Windows Forms
  4. Label and LinkLabel deprecated

Label and LinkLabel deprecated

Scheduled Pinned Locked Moved Windows Forms
visual-studiowinformscomquestionlearning
3 Posts 3 Posters 15 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.
  • Y Offline
    Y Offline
    Yvan Rodrigues
    wrote on last edited by
    #1

    What??? OK, more like **superceded**. I am currently writing a book on Windows Forms. It was a surprise to me, while fact-checking, that `Label` and `LinkLabel` have been "replaced" by `ToolStripLabel`. > The ToolStripLabel control replaces and adds functionality to the `Label` and `LinkLabel` controls. However, the `Label` and `LinkLabel` controls are retained for both backward compatibility and future use, if you choose. Link[^] So, no need to start changing our code, but I'm amazed I've never seen this before. :omg:

    Yvan Rodrigues, C.Tech. Red Cell Innovation Inc.

    Richard DeemingR N 2 Replies Last reply
    0
    • Y Yvan Rodrigues

      What??? OK, more like **superceded**. I am currently writing a book on Windows Forms. It was a surprise to me, while fact-checking, that `Label` and `LinkLabel` have been "replaced" by `ToolStripLabel`. > The ToolStripLabel control replaces and adds functionality to the `Label` and `LinkLabel` controls. However, the `Label` and `LinkLabel` controls are retained for both backward compatibility and future use, if you choose. Link[^] So, no need to start changing our code, but I'm amazed I've never seen this before. :omg:

      Yvan Rodrigues, C.Tech. Red Cell Innovation Inc.

      Richard DeemingR Offline
      Richard DeemingR Offline
      Richard Deeming
      wrote on last edited by
      #2

      I suspect it's just a poor choice of words in the documentation. The Label and LinkLabel classes are not marked as Obsolete, and you can't use the ToolStripLabel directly on a form:

      ToolStripItem Class[^]

      ToolStripItem controls must be contained in a ToolStrip, MenuStrip, StatusStrip, or ContextMenuStrip and cannot be added directly to a form.


      "These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer

      "These people looked deep within my soul and assigned me a number based on the order in which I joined" - Homer

      1 Reply Last reply
      0
      • Y Yvan Rodrigues

        What??? OK, more like **superceded**. I am currently writing a book on Windows Forms. It was a surprise to me, while fact-checking, that `Label` and `LinkLabel` have been "replaced" by `ToolStripLabel`. > The ToolStripLabel control replaces and adds functionality to the `Label` and `LinkLabel` controls. However, the `Label` and `LinkLabel` controls are retained for both backward compatibility and future use, if you choose. Link[^] So, no need to start changing our code, but I'm amazed I've never seen this before. :omg:

        Yvan Rodrigues, C.Tech. Red Cell Innovation Inc.

        N Offline
        N Offline
        Nitzan Levi
        wrote on last edited by
        #3

        Thanks for the info, funny how it takes them ages to change something that seem logical...

        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