hello
I have strings here, ecah stored individually
a = hello
b = bye
c= hi

Label1.text = a
label1.text = b
label1.text = c
it is in the command button sub and i want them to show respectively when the button is clicked like this:
a first, then b, then c.

I think you forgot to ask a question.

Try this in the command buttons click event:

Private buttonClickIndex As Integer = 0

Private Sub Command1_Click(ByVal sender As Object, ByVal e As System.EventArgs)
     If buttonClickIndex = 0 Then
          label1.Text = "hello"
          buttonClickIndex = 1
     ElseIf buttonClickIndex = 1
          label1.Text = "bye"
          buttonClickIndex = 2
     ElseIf buttonClickIndex = 2
          label1.Text = "hi"
          buttonClickIndex = 0
     End If
End Sub

hello
I have strings here, ecah stored individually
a = hello
b = bye
c= hi

Label1.text = a
label1.text = b
label1.text = c
it is in the command button sub and i want them to show respectively when the button is clicked like this:
a first, then b, then c.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.