Skip to content

Latest commit

 

History

History
37 lines (28 loc) · 2.13 KB

label-control-windows-forms.md

File metadata and controls

37 lines (28 loc) · 2.13 KB
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
Label control [Windows Forms]
labels
LinkLabel control [Windows Forms]
2028bbe3-ffe2-43e8-8ae3-dec759d2ecec

Label Control (Windows Forms)

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.

In This Section

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.

Reference

xref:System.Windows.Forms.Label
Describes this class and has links to all its members.

Related Sections

Controls to Use on Windows Forms
Provides a complete list of Windows Forms controls, with links to information on their use.