Hello
I have selected 4th item in a listbox, i refresh ListBox and want to get the selected item which was selected before refresh.
How to do this. Please help me
Farooq
Printable View
Hello
I have selected 4th item in a listbox, i refresh ListBox and want to get the selected item which was selected before refresh.
How to do this. Please help me
Farooq
Create a variable to remember the index of the selected item. At the end of the Refresh sub, add a line to select that index again.
What is the line that set index again ???
You could add the INDEX to the ListBox.Tag property, and use that as a place holder to reset the selected item after the refresh (saves having to use an aditional varaiable etc)
List1.ListIndex = List1.Tag