Label and LinkLabel deprecated
-
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:
-
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:
I suspect it's just a poor choice of words in the documentation. The
Label
andLinkLabel
classes are not marked asObsolete
, and you can't use theToolStripLabel
directly on a form:ToolStripItem
controls must be contained in aToolStrip
,MenuStrip
,StatusStrip
, orContextMenuStrip
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
-
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:
Thanks for the info, funny how it takes them ages to change something that seem logical...