09-12-2012, 09:55 AM
I'm working on a project and I have two questions. I searched alot for it but nothing found:
1) how to convert a listbox item to a string (only one item)
2) how to search a listbox and then select the first item that matches the string searching for
... and if it's possible add a complete match option to it
Hope you can help
Greets!
PS: I already know how to search for item <!-- s --><img src="{SMILIES_PATH}/icon_e_smile.gif" alt="" title="Smile" /><!-- s -->
[code2=vbnet]ListBox1.Items.Contains(TextBox1.Text)[/code2]
1) how to convert a listbox item to a string (only one item)
2) how to search a listbox and then select the first item that matches the string searching for
... and if it's possible add a complete match option to it
Hope you can help
Greets!
PS: I already know how to search for item <!-- s --><img src="{SMILIES_PATH}/icon_e_smile.gif" alt="" title="Smile" /><!-- s -->
[code2=vbnet]ListBox1.Items.Contains(TextBox1.Text)[/code2]