I cat figure out how to get this to work. I would like to be able to compre the wordListBox.Item Wild to what the user clicks and wild should match any other wordListBox.Item. I am just not getting it please help.
VB.NET:
Private Sub MainForm_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
' fills the list box with 8 pairs of matching words,
' then calls a procedure to shuffle the words
wordListBox.Items.Add("Refrigerator")
wordListBox.Items.Add("Range")
wordListBox.Items.Add("Television")
wordListBox.Items.Add("Computer")
-----<Snip>----
Private Sub GetSecondItem(ByVal strItem As String)
Dim i As Integer
For i = 0 To wordListBox.Items.Count - 1
If strItem = wordListBox.Items(i).ToString Then
Select Case i
Case 0
Label1.Text = strItem
Label1.BackColor = Color.Red
Label1.Enabled = False
Case 1
Label2.Text = strItem
Label2.BackColor = Color.Red
Label2.Enabled = False
-----<Snip>----
Case 15
Label16.Text = strItem
Label16.BackColor = Color.Red
Label16.Enabled = False
End Select
End If
Next i
End Sub