Label Control Problem

Apr 8 2008 1:52 AM
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)