Finds an element in the ListBox and returns its index, or -1 if the element cannot be found.
Referenced by: