|
-
Jan 2nd, 2007, 02:59 PM
#1
Thread Starter
Fanatic Member
List Box Refresh
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
-
Jan 2nd, 2007, 03:03 PM
#2
Re: List Box Refresh
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.
-
Jan 2nd, 2007, 03:06 PM
#3
Thread Starter
Fanatic Member
Re: List Box Refresh
What is the line that set index again ???
-
Jan 2nd, 2007, 03:07 PM
#4
Re: List Box Refresh
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)
-
Jan 2nd, 2007, 03:08 PM
#5
Re: List Box Refresh
List1.ListIndex = List1.Tag
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|