Label Control

  • Label Control is used to display the text in a non-editable format.
  • The text displayed by the Label control can only be changed at run time of the application or design time of the form.
  • You can place a Label control on the form by drag and drop it from the toolbox. The Label control looks like as follows:
  • label-control
Properties Of Label Control

Some of the commonly used properties of Label Control are listed below in the Table:

label-control
Methods of Label Control

Some of the commonly used methods of Label Control are listed below in the Table:

label-control
Events of Label Control

Some of the commonly used Events of Label Control are listed below in the Table:

label-control
Example

Here is a simple example of Label control. To understand the use of the Label control follows the given steps:

  • Add a Label control to the Form by drag and drop it from the Toolbox.
  • Now change the Text property of the Label control to “Hello User”.
  • Set the Size property under the Font property to 13 and also set Bold property to True.
  • Now run the application using F5 key. This will produce the following Form at run time:
  • label-control