---
title: "Label Control in C#.Net"  
description: "Label control is used to display Text on the Form. Main property of the label control is the text property which is used to set the text in the label."  
author: "Pushpendra Singh"  
published: 2011-01-24  
updated: 2020-02-03  
canonical: https://www.mindstick.com/articles/389/label-control-in-c-sharp-dot-net  
category: "c#"  
tags: ["c#"]  
reading_time: 1 minute  

---

# Label Control in C#.Net

Label control is used to [display Text](https://www.mindstick.com/forum/12715/how-to-display-text-in-an-mvc-view-with-htmlattrbutes) on the Form. Main property of [the label control is the text property](https://www.mindstick.com/articles/601/formula-field-in-crystal-report) which is used to set the text in the label.

How to use Label Control

[Drag and drop](https://www.mindstick.com/forum/454/how-to-drag-and-drop-multiple-image-from-one-canvas-to-onther-canvas-in-html5) Label control from the toolbox on the [window Form](https://www.mindstick.com/forum/527/how-to-pass-datagridview-s-cells-value-to-another-window-form).

![Label Control in C#.Net](https://www.mindstick.com/mindstickarticle/9f984132-94a8-49ea-aca6-1de6794b2e33/images/626fd3e2-7178-43c2-9e75-ce92720c50ce.png)

Display Text in Label.

```
         private void Form8_Load(object sender, EventArgs e)        {            // display text in Label            label1.Text = "Hello";         }
```

The text will display in Label when the [Application](https://www.mindstick.com/articles/12824/calculator-application-in-android) run.

![Label Control in C#.Net](https://www.mindstick.com/mindstickarticle/9f984132-94a8-49ea-aca6-1de6794b2e33/images/2b9b7590-df02-441b-a853-e619ce9ca537.png)

**Label [Properties](https://yourviews.mindstick.com/view/81845/now-it-s-possible-to-predict-properties-of-any-molecule):**

**Text:** The text that appears on the Label control.

**Enabled:** If this property is set to false, the Label appears grayed out.

```
 private void Form8_Load(object sender, EventArgs e)        {            //disable Label            label1.Enabled = false;         }
```

![Label Control in C#.Net](https://www.mindstick.com/mindstickarticle/9f984132-94a8-49ea-aca6-1de6794b2e33/images/5de4c79b-aa49-4153-b3d0-fef5c771e50e.png)

**BackColor:**Set the [background color](https://www.mindstick.com/forum/18/split-background-color) of Label control.

```
 private void Form8_Load(object sender, EventArgs e)        {            //change Label BackColor            label1.BackColor = Color.CadetBlue;         }
```

## [Output](https://www.mindstick.com/interview/34427/explain-the-output-in-angular)

![Label Control in C#.Net](https://www.mindstick.com/mindstickarticle/9f984132-94a8-49ea-aca6-1de6794b2e33/images/2ab85def-caa2-4538-b1f4-d1fa92a14711.png)

**ForeColor:** Set the ForeColor of Label control.

```
 private void Form8_Load(object sender, EventArgs e)        {            // change ForeColor of Label's text            label1.ForeColor = Color.Red;         }
```

## Output

![Label Control in C#.Net](https://www.mindstick.com/mindstickarticle/9f984132-94a8-49ea-aca6-1de6794b2e33/images/f557f34d-5bad-429e-a3cc-9eb312264844.png)

---

Original Source: https://www.mindstick.com/articles/389/label-control-in-c-sharp-dot-net

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
