frankwhite
Well-known member
- Joined
- Nov 30, 2004
- Messages
- 49
- Programming Experience
- Beginner
Hi, I was wondering if somebody would be able to help me out a little bit. On my form I Have 2 Listboxes and 2Buttons. The way in which this works is an item is selected from list box 1 and the button is selected for the item to be shown in the second list box up until now I am fine apart from the next part. I need help with some coding which will select whatever the last item is in the list box 2, to be same as list box 1. I know its confusing so I will try to explain it better:
Listbox 1 (All items available)- Item1, Item2, Item3, Item4, Item5
Button (Add item to listbox2)
Listbox 2 (Selected Items)- Item4, Item2, Item5, Item1.
Button (Remove item from Listbox2)
If the above scenario was in place, Item1 should be selected in Listbox 2, And when the button is clicked (Remove) The next item which is Item5 should be selected in Listbox1.
I need help with the coding to basically make the current item selected in listbox2, to be selected in Listbox1. If you are confused please ask me.
Any help please? Thanks?
Listbox 1 (All items available)- Item1, Item2, Item3, Item4, Item5
Button (Add item to listbox2)
Listbox 2 (Selected Items)- Item4, Item2, Item5, Item1.
Button (Remove item from Listbox2)
If the above scenario was in place, Item1 should be selected in Listbox 2, And when the button is clicked (Remove) The next item which is Item5 should be selected in Listbox1.
I need help with the coding to basically make the current item selected in listbox2, to be selected in Listbox1. If you are confused please ask me.
Any help please? Thanks?