i want to make a listbox keep it's selection on a particular item.
Example, i have the following listbox item:
index - value
0 - "APPLE"
1 - "BANANA"
2 - "CARROTS"
I want to move CARROTS above BANANA, so what I did is
get the index of CARROTS and APPLE, then deleted CARROTS and inserted a new CARROTS. but the selection on the CARROTS is lost. I have to click on it again for it to be selected. How do i keep the selection on CARROTS??