i've created two buttons ('Move Top' and 'Move Bottom') and I have to make them work as follows. when I click an item from a ListBox (for example, if we have the items: 1. Cat, 2. Dog, 3. Bird, 4. Dinosaur and 5. Phoenix in the ListBox) it moves straight to the top or to the bottom.
Let's say I want to move the element Dinosaur to the top of my ListBox, and the element Dog - to the bottom. How can I make it work? Again - I should make it work by moving it directly to the top/bottom.
PS: It's my first day on here so excuse me if my question is not clear enough :)