MrSandman666
Programmer
Hello everybody!
I got a little problem here and I hope you can help me. I have a list box into which the user can add items during runtime. Now, lets say we have our brainless whiny user Bob. Now, Bob sits down and starts to work and enter items into the listbox, using my form for input. Now, since Bill isn't all that smart, he remembers that he wanted to add an item waaaay up in the list although he is already waaaay down. Deleting every item up to the position where he forgot to enter the item would destroy most of Bob's hard work so he wants to just go up and insert the forgotten item without having to delete everything up to there. He can't though, since ListBox.AddItem adds new items only to the bottom of the list. Now Bob comes to me, the programmer, and tells me to fix that, so that I can do some work in order to save some work for Bob. My problem is: I have no idea how I would go about this. How could I add an item at the top of a ListBox without having to store all the data, delete everything up to the insertion point and then add all the items again?
Thanx a lot for helping Bob and me out.
I got a little problem here and I hope you can help me. I have a list box into which the user can add items during runtime. Now, lets say we have our brainless whiny user Bob. Now, Bob sits down and starts to work and enter items into the listbox, using my form for input. Now, since Bill isn't all that smart, he remembers that he wanted to add an item waaaay up in the list although he is already waaaay down. Deleting every item up to the position where he forgot to enter the item would destroy most of Bob's hard work so he wants to just go up and insert the forgotten item without having to delete everything up to there. He can't though, since ListBox.AddItem adds new items only to the bottom of the list. Now Bob comes to me, the programmer, and tells me to fix that, so that I can do some work in order to save some work for Bob. My problem is: I have no idea how I would go about this. How could I add an item at the top of a ListBox without having to store all the data, delete everything up to the insertion point and then add all the items again?
Thanx a lot for helping Bob and me out.