This is not clear. Do you just want to take the current selections in listboxes 1 and 2 and put these two entries into listbox 3?
I created a form with 3 listboxes and a button. I added data to the listboxes.
Private Sub Command1_Click()
List3.Clear
List3.AddItem List1.Text
List3.AddItem List2.Text
List3.ListIndex = 0
End Sub
Private Sub Form_Load()
List1.ListIndex = 0
List2.ListIndex = 0
End Sub
I initialize the selected items in list1 and list2 in form_load.
When the button is pushed I clear list3 and add the selected items from list1 and list2 and then set the first entry to be selected.
Does this help you?
This works fine in VB6. what error do you get?
I repeat, what error do you get and what is it that you are trying, exactly?
looked it up, maybe this will do it:
list3.items.add(List1.items(list1.selectedindex))