Label Control on the Form in the VB.NET. Label is one of the controls on visual basic that used when building a program. Functions of label is to brings up an show a value.
At this time, the writer will give you a tutorial about how to use and making a Control Label on the Form in the Visual Basic Dot Net. To make it you can use Visual Studio 2008, Visual Studio 2010, Visual Studio Visual Studio 2012, 2013, 2015, Visual Studio and other latest version of visual studio.
At this time, the writer will give you a tutorial about how to use and making a Control Label on the Form in the Visual Basic Dot Net. To make it you can use Visual Studio 2008, Visual Studio 2010, Visual Studio Visual Studio 2012, 2013, 2015, Visual Studio and other latest version of visual studio.
POST ADSENSE ADS
HERE
THAT HAVE BEEN PASSED
HERE
THAT HAVE BEEN PASSED
How to display a label?
To use or display the labels on the form in the VB.NET is as follows:- Add a label to the control in the form by clicking control toolbox on the label then slide into form;
![]() |
Mengubah teks pada label control di VB.NET |
To change the text on the label, you need to enter the following source code:
Label1.Text = "Hallo guys"
![]() |
Mengubah teks pada label control di VB.NET |
To change the color on the label, you need to use the following code:
Label1.Forecolor = Color.Red
You can write the source code on even load
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Label1.Text = "Hallo guys"
Label1.Forecolor = Color.Red
End Sub
In addition, you can use the label property to change the text font, color, and others.
Tags
VB NET
Subscribe Our Newsletter
0 Comment
Post a Comment