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


Categories: VB .Net Codes


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.