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 ...

Get A Programmer's Guide to .NET now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.