Retrieve item of a listbox

If I want to retrieve the item in a listbox, what should be done? Basically Im trying to retrieve the items in a listbox then compare it with the word that I have keyed in earlier. So could anyone give me some idea? Thanks in advance.