检查列表框项目

CHECK THE LISTBOX ITEM

当我在子系列中输入文本时,必须先检查文本是否已经在 LISTBOX.ITEMS

如何查看 listbox.item = subserial.text?

For Each a As String In String.Join(vbCrLf, ListBox1.Items.Cast(Of String))
        If txtSS.Text = a Then
            MsgBox("It's already barcoded!")
            txtSS.Text = ""
        End If
    Next

我明白了!