Link to home
Start Free TrialLog in
Avatar of Steve
SteveFlag for United States of America

asked on

How do I copy the selected items from one listbox to another?

I have two listboxes.  I want the selected items in the first box to be copied to the second box on a button click event.

The listbox names are lbFiles and lbDelete.  I want lbFiles to copy to lbDelete.


Private Sub btnRight_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnRight.Click
        lbDelete = lbFiles.SelectedItems
End Sub
ASKER CERTIFIED SOLUTION
Avatar of nickhoggard
nickhoggard

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Steve

ASKER

Worked great man, thanks!!!