Finds an element in the ListBox and returns its index.
If the element cannot be found, returns -1.
-1