the item in list box highlight?

vicgirl

Registered User.
Local time
Today, 14:55
Joined
Jul 13, 2004
Messages
33
the item in list box selection?

Hi everyone,
I have added "Move up"/"Move down" button for the list box in my form. However, when I select an item in the list and click "Move up"/"Move down" button, the item below/above the selected item is selected. How do I set the original item selected? Attached is the copy of the db

Thanks in advance!

vicgirl
 

Attachments

Last edited:
Quite simple use the Listindex property of listbox to select the item you want. You need to put the Listindex into an integer or long dim and after you resort the list set the Listindex by the ListIndexDim +/- 1. The listbox has to be in focus before you use this property.
 

Users who are viewing this thread

Back
Top Bottom