Yan Yaramillo
New member
:tears_of_joy: Hi!
Here's my question.
I'm trying to make an aplication in wich you'll use the textbox to select an item form the listbox
If the listbox has:
One
Two
Three
Four
And if I want to select one of them without using the mouse but only with a textbox then what should I do?
Well I'm deleting those items that are typed on the textbox one by one.
I've alredy done this and its actually works with a buttom:
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
TextBox1.Text.ToUpper()
ListBox1.Items.RemoveAt(ListBox1.FindString(TextBox1.Text))
TextBox1.Clear()
TextBox1.Focus()
End Sub
The problem is that I want to delete in this way:
If I select form the textbox "Two" then "Four" and "Three" have to be deleted with "TWO" but the others stay in the listbox
If I select form the textbox "Three" then "Four" has to be deleted with "THREE" but the others stay in the listbox
I need help please what should I do?
Here's my question.
I'm trying to make an aplication in wich you'll use the textbox to select an item form the listbox
If the listbox has:
One
Two
Three
Four
And if I want to select one of them without using the mouse but only with a textbox then what should I do?
Well I'm deleting those items that are typed on the textbox one by one.
I've alredy done this and its actually works with a buttom:
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
TextBox1.Text.ToUpper()
ListBox1.Items.RemoveAt(ListBox1.FindString(TextBox1.Text))
TextBox1.Clear()
TextBox1.Focus()
End Sub
The problem is that I want to delete in this way:
If I select form the textbox "Two" then "Four" and "Three" have to be deleted with "TWO" but the others stay in the listbox
If I select form the textbox "Three" then "Four" has to be deleted with "THREE" but the others stay in the listbox
I need help please what should I do?