Label Control | VB.Net
Microsoft Visual Studio .NET provides a comprehensive range of controls, serving as graphical tools that empower developers to construct the user interface of a VB.Net program. Among these controls, Labels hold a prominent position as one of the most frequently utilized Visual Basic controls.
System.Windows.Forms namespace
The primary purpose of a Label control is to facilitate the placement of descriptive text within the user interface, with the understanding that this text remains static and does not require user interaction or modification. The Label class, which encapsulates the functionality and properties of Labels, is defined within the System.Windows.Forms namespace. By using this class, developers can seamlessly incorporate Labels into their applications, enhancing the visual clarity and user-friendliness of the interface.
Add a Label control to the form. Click Label in the Toolbox and drag it over the forms Designer and drop it in the desired location.
If you want to change the display text of the Label, you have to set a new text to the Text property of Label.
You can load Image in Label control , if you want to load an Image in the Lable control you can code like this
The following source code shows how to set some properties of the Label through coding.
Full Source VB.NET- Visual Studio IDE
- How to Create a VB.Net Windows Forms Application
- VB.Net Button Control
- VB.Net TextBox Control
- VB.Net ComboBox Control
- VB.Net ListBox Control
- VB.Net Checked ListBox Control
- VB.Net RadioButton Control
- VB.Net CheckBox Control
- VB.Net PictureBox Control
- VB.Net ProgressBar Control
- VB.Net ScrollBars Control
- VB.Net DateTimePicker Control
- VB.Net Treeview Control
- VB.Net ListView Control
- VB.Net Menu Control
- VB.Net MDI Form
- VB.Net Color Dialog Box
- VB.Net Font Dialog Box
- VB.Net OpenFile Dialog Box
- VB.Net Print Dialog Box
- KeyPress event in VB.NET
- How to create Dynamic Controls in VB.NET ?
- How do i keep a form on top of others
- Timer Control - VB.Net