See Also: Label Members
System.Windows.Forms.Label controls are typically used to provide descriptive text for a control. For example, you can use a System.Windows.Forms.Label to add descriptive text for a System.Windows.Forms.TextBox control to inform the user about the type of data expected in the control. System.Windows.Forms.Label controls can also be used to add descriptive text to a System.Windows.Forms.Form to provide the user with helpful information. For example, you can add a System.Windows.Forms.Label to the top of a System.Windows.Forms.Form that provides instructions to the user on how to input data in the controls on the form. System.Windows.Forms.Label controls can be also used to display run time information on the status of an application. For example, you can add a System.Windows.Forms.Label control to a form to display the status of each file as a list of files is processed.
A System.Windows.Forms.Label participates in the tab order of a form, but does not receive focus (the next control in the tab order receives focus). For example, if the Label.UseMnemonic property is set to true, and a mnemonic character—the first character after an ampersand (&)—is specified in the Control.Text property of the control, when a user presses ALT+ the mnemonic key, focus moves to the next control in the tab order. This feature provides keyboard navigation for a form. In addition to displaying text, the System.Windows.Forms.Label control can also display an image using the Label.Image property, or a combination of the Label.ImageIndex and Label.ImageList properties.