Last Updated : 30 Jun, 2019
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 Propertyin the windows form. You can set this property using two different methods:
1. Design-Time:It is the easiest method to set the Padding property of the Label control using the following steps:
2. Run-Time:It is a little bit trickier than the above method. In this method, you can set the padding between the text and the label boundaries in the windows forms programmatically with the help of given syntax:
public System.Windows.Forms.Padding Padding { get; set; }
Here, Padding indicates the Label control's internal spacing characteristics. Following steps are used to set the Padding property of the Label:
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4