How to set the Size of the Label in C#? Last Updated : 30 Jun, 2019 Comments Improve Suggest changes Like Article Like Report In Windows Forms, Label control is used to display text on the form and it does not take part in user input or in mouse or keyboard events. You are allowed to set the size of Label control using Size Property. You can set this property using two different methods: 1. Design-Time: It is the easiest method to set the Size property of the Label control using the following steps: Step 1: Create a windows form as shown in the below image: Visual Studio -> File -> New -> Project -> WindowsFormApp Step 2: Drag the Label control from the ToolBox and drop it on the windows form. You are allowed to place a Label control anywhere on the windows form according to your need. Step 3: After drag and drop you will go to the properties of the Label control to set the Size property of the Label. Output: 2. Run-Time: It is a little bit trickier than the above method. In this method, you can set the size of the Label control programmatically with the help of given syntax: public System.Drawing.Size Size { get; set; } Here, Size indicates the height and the width of the Label in pixel. Following steps are used to set the Size property of the Label: Step 1: Create a label using the Label() constructor is provided by the Label class. // Creating label using Label class Label mylab = new Label(); Step 2: After creating Label, set the Size property of the Label provided by the Label class. // Set Size property of the label mylab.Size = new Size(120, 25); Step 3: And last add this Label control to form using Add() method. // Add this label to the form this.Controls.Add(mylab); Example: CSharp using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace WindowsFormsApp16 { public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void Form1_Load(object sender, EventArgs e) { // Creating and setting the label Label mylab = new Label(); mylab.Text = "GeeksforGeeks"; mylab.Location = new Point(222, 90); mylab.Size = new Size(120, 25); mylab.BorderStyle = BorderStyle.FixedSingle; // Adding this control to the form this.Controls.Add(mylab); } } } Output: Comment More infoAdvertise with us Next Article How to Set the Padding of the Label in C#? A ankita_saini Follow Improve Article Tags : C# Similar Reads How to set the Size of the ListBox in C#? In Windows Forms, ListBox control is used to show multiple elements in a list, from which a user can select one or more elements and the elements are generally displayed in multiple columns. In ListBox, you are allowed to set the height and width of the ListBox in pixels using Size Property of the L 2 min read How to set Text on the Label in C#? In Windows Forms, Label control is used to display text on the form and it does not take part in user input or in mouse or keyboard events. You are allowed to set the text in the Label control using the Text Property. It makes your label more attractive. You can set this property using two different 3 min read How to Set the Padding of the Label in C#? In Windows Forms, Label control is used to display text on the form and it does not take part in user input or in mouse or keyboard events. You are allowed to set the space between the content and the boundaries of the Label control using the Padding Property in the windows form. You can set this pr 3 min read How to set the size of the Button in C#? A Button is an essential part of an application, or software, or webpage. It allows the user to interact with the application or software. In windows forms, you are allowed to set the size of the button automatically using the AutoSize Property of the button. It is provided by Button class which hel 3 min read How to set the size of the MaskedTextBox in C#? In C#, MaskedTextBox control gives a validation procedure for the user input on the form like date, phone numbers, etc. Or in other words, it is used to provide a mask which differentiates between proper and improper user input. In MaskedTextBox control, you can set the size of the MaskedTextBox on 3 min read How to Set the Location of the Label in C#? In Windows Forms, Label control is used to display text on the form and it does not take part in user input or in mouse or keyboard events. You are allowed to set the location of the Label control using the Location Property in the windows form. This property contains the coordinates of the upper-le 3 min read Like