How to set the Dynamic Label Name

Private Sub Form1_Load(sender As Object,e As EventArgs) Handles MyBase.Load
        Label1.Text = "Student Name"
        Label1.Text = "Father Name"
End Sub

How to set the dynamic Back/Fore color of a Label.

Label1.BackColor = Color.Yellow
Label2.ForeColor = Color.Red

Loading

Categories: VB .Net Codes

0 Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.