title | description | ms.date | helpviewer_keywords | ms.assetid | |||
---|---|---|---|---|---|---|---|
Label Control |
Learn about label control in Windows Forms, which is used to display text or images that cannot be edited by the user. |
03/30/2017 |
|
2028bbe3-ffe2-43e8-8ae3-dec759d2ecec |
Important
The xref:System.Windows.Forms.ToolStripLabel control replaces and adds functionality to the xref:System.Windows.Forms.Label control. You can use the xref:System.Windows.Forms.ToolStripLabel with other new controls such as the xref:System.Windows.Forms.ToolStripDropDown. However, the xref:System.Windows.Forms.Label control is retained for both backward compatibility and future use, if you choose.
Windows Forms xref:System.Windows.Forms.Label controls are used to display text or images that cannot be edited by the user. They are used to identify objects on a form—to provide a description of what a certain control will do if clicked, for example, or to display information in response to a run-time event or process in your application. Because the xref:System.Windows.Forms.Label control cannot receive focus, it can also be used to create access keys for other controls.
Label Control Overview
Explains what this control is and its key features and properties.
How to: Create Access Keys with Windows Forms Label Controls
Describes how to use a label to define an access key for another control.
How to: Size a Windows Forms Label Control to Fit Its Contents
Explains adjusting the size of a label control for its caption.
xref:System.Windows.Forms.Label
Describes this class and has links to all its members.
Controls to Use on Windows Forms
Provides a complete list of Windows Forms controls, with links to information on their use.