sorry all but my mind today is somewhere else. I can't find a solution for this (simple) problem.
- given the listitems text are names
- having 2 ListBoxes and 4 buttons to manage the items from one to the other list, I realize that once I move the first 2 names from the first list (list1) and put them to the second one (list2) and then put them back into list1, the are (of course) added to the end of the list.
I need to have both lists sorted at all time.
Funny enough that it seems that the ListView (winforms) control has the capability to sort, while it's "cousin" ListBox doesn't.
I was trying to solve this problem with the SortedItem object, but I found myself short of index, text and values properties (don't ask me how that happend lol)
While I crack open my head and get fresh air, I thank you all in advance for paying attention to this problem.
Daren J. Lahey
Just another computer guy...
- given the listitems text are names
- having 2 ListBoxes and 4 buttons to manage the items from one to the other list, I realize that once I move the first 2 names from the first list (list1) and put them to the second one (list2) and then put them back into list1, the are (of course) added to the end of the list.
I need to have both lists sorted at all time.
Funny enough that it seems that the ListView (winforms) control has the capability to sort, while it's "cousin" ListBox doesn't.
I was trying to solve this problem with the SortedItem object, but I found myself short of index, text and values properties (don't ask me how that happend lol)
While I crack open my head and get fresh air, I thank you all in advance for paying attention to this problem.
Daren J. Lahey
Just another computer guy...