01-15-2012, 05:52 AM
Hey, I'm trying to make a program which picks one text string each time you click a button. I have a bunch of text strings and I was just wondering how I could make it pick a different one each time I click the button.
This doesn't work, but is what I tried:
This doesn't work, but is what I tried:
Code:
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
TextBox1.Text = ("Item 1") Or TextBox1.Text = ("Item 2") Or TextBox1.Text = ("Item 3") Or TextBox1.Text = ("Item 4") Or TextBox1.Text = ("Item 5")
End Sub