Two listboxes with the same info. (Almost).
Posted on 1999-10-30
ok. here goes...
Part of my app searches the drive for files, then displays them in 2 listboxes.
One (List1) displays the filename only.
The other one (List2), displays the entire path.
I synchronize these listboxes with,
List2.ListIndex = List1.ListIndex
When the .Sorted Property is set to False on the listboxes, they work fine. But when they are set to True, they don't match up. Which is almost common sense that they won't seeing as there is different data displayed.
Mark2150 suggested that I should use an Array.(This was at the end of a different question). I probably did it wrong, but all i got was one file displayed 27 times which happens to be the amount of files that i had searched for.
So I am asking this question in hopes that someone may show me either how to use an Array Properly, or to show me how we can take it in a different direction to get the same desired results.
How can I synchronize two Listboxes with the .Sorted Property set to True?