|
-
Nov 11th, 2008, 10:43 AM
#1
Thread Starter
Junior Member
[2008] add items from listbox to another
Hi
I have 2 listboxes,I want to add items from ListBox1 to ListBox2,ListBox1 is populated as follow:
Dim dt As New CustomersTableAdapter
ListBox1.DataSource = dt.GetData()
ListBox1.DisplayMember = "CompanyName"
ListBox1.ValueMember = "CustomerID"
I want to add the selected item from listbox1 to listbox2(the text and the value) so that each item in listbox2 will have a displaymember and a valuemember
any help
thanks
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|