2
Answers

Label Control Problem

Aamir Mustafa

Aamir Mustafa

16y
2k
1
i want to write something on label control in run time
i draw ten label controls on the form
and i have placed a button on the form
i want to write text on each label at a time
when i press button first time then text should be displayed on label1 and when i press button second time then text should be displayed on the second label and so on
when i use this code then it displays text on the all labels
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click

        Label1.Text = "a"


        Label2.Text = "g"
    End Sub

now how can i change text of label each time when i press the button
thnaks
Answers (2)