Recent in Fashion

Best Seller Books

How to use Label Control on the Form in the VB.NET

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.
POST ADSENSE ADS
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:

Baca Juga



  • 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
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
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.

Subscribe Our Newsletter

avatar
"By speaking behind my back, it means that you respect my existence enough not to act in front of my face."

Related Posts

  • How To Use A Text Box Control On The VB.NET
    How To Use A Text Box Control On The VB.NETHow To Use Text Box Controls On VB.NET. Text Box is one of the controls on visual basic that are used when we building an application. Text Box funct ...
  • How To Use Control Button in the VB.NET
    How To Use Control Button in the VB.NETHow To Use Control Button in the VB.NET. Button was one of the control on a Visual Basic that function to execute the command, action and event.At th ...

0 Comment

Post a Comment

Article Top Ads

Parallax Ads

Article Center Ads

Article Bottom Ads