O'Reilly logo

A Programmer's Guide to .NET by Alexei Fedorov

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

9.4. Labels

The Microsoft .NET Framework class library contains two classes that represent labels – the Label class, which represents a standard Windows label, and the derived LinkLabel class, which is a special version of a Windows label control that can display hyperlinks.

Label class

This class represents a standard Windows label control that is typically used to provide descriptive text for another control. The most common example is using a Label control with the TextBox or ListBox controls to provide the user with an idea as to what kind of information is expected to be entered or selected. Another example is to use a Label control to provide the main header (but not the caption or title bar) for the Form or dialog box.

The following ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required