* Merge winforms framework content to working branch (#14) * Breadcrumb / TOC / Move net5 to net folder (#15) * change path from net5 to net * Mess with bread/toc * Mess with bread/toc * Mess with bread/toc * Mess with bread/toc * Mess with bread/toc * Mess with bread/toc * Mess with bread/toc * Mess with bread/toc * Mess with bread/toc * Mess with bread/toc * Mess with bread/toc * Mess with bread/toc * Mess with bread/toc * Mess with bread/toc * Add .net 5 winforms placeholder article (#16) * added some metadata and adjusted net5 placeholder * corrections * corrections * corrections * Test1 * Swapping landing page vs concept * fix links * Fix links * Fix desc
2.2 KiB
title, ms.date, f1_keywords, helpviewer_keywords, ms.assetid
| title | ms.date | f1_keywords | helpviewer_keywords | ms.assetid | ||||
|---|---|---|---|---|---|---|---|---|
| Label Control Overview | 03/30/2017 |
|
|
dcad7f44-11b7-4c55-b0c0-d984ade43d7d |
Label Control Overview (Windows Forms)
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. For example, you can use labels to add descriptive captions to text boxes, list boxes, combo boxes, and so on. You can also write code that changes the text displayed by a label in response to events at run time. For example, if your application takes a few minutes to process a change, you can display a processing-status message in a label.
Working with the Label Control
Because the xref:System.Windows.Forms.Label control cannot receive the focus, it can also be used to create access keys for other controls. An access key allows a user to select the other control by pressing the ALT key with the access key. For more information, see Creating Access Keys for Windows Forms Controls and How to: Create Access Keys with Windows Forms Label Controls.
The caption displayed in the label is contained in the xref:System.Windows.Forms.Label.Text%2A property. The xref:System.Windows.Forms.Label.TextAlign%2A property allows you to set the alignment of the text within the label. For more information, see How to: Set the Text Displayed by a Windows Forms Control.