How can i check a listbox for an item through a command in a txtbox? Also how can i remove the item from the listbox?
Printable View
How can i check a listbox for an item through a command in a txtbox? Also how can i remove the item from the listbox?
VB Code:
If (ListBox1.Items.Contains(TextBox3.Text)) Then ListBox1.Items.Remove(TextBox3.Text) Else MessageBox.Show(TextBox3.Text & " is not in the ListBox") End If
Ok thanks