Hello,
I have a form with a button and a text box. What I am trying to do is when I click the button, the text box shows the first item of my array, then each time I click the button, the textbox updates with the next item of the array until the end and then start again.
My code so far is
Code:
Private Sub btnnext_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnnext.Click
Dim x As New ArrayList
Dim i As Integer
Dim s As Object
' Add items to array list.
x.Add("A")
x.Add("B")
x.Add("C")
x.Add("D")
x.Add("E")
x.Add("F")
x.Add("G")
x.Add("H")
x.Add("I")
x.Add("J")
For i = 0 To x.Count - 1
txtArray1.Text = (x(i))
Next
Any help appreciated
Thanks
Goong