Click here to Skip to main content
15,917,177 members
Please Sign up or sign in to vote.
1.00/5 (3 votes)
See more:
Hi All,


I have 2 List box.

List box 1( Contains dates)

7/26/2013
7/27/2013
7/28/2013
7/29/2013


List box 2( Contains Names)
XXX
YYY
ZZZ


I want to have another list box which has like below

List box 3(Should have)
7/26/2013
XXX
YYY
ZZZ
7/27/2013
XXX
YYY
ZZZ
7/28/2013
XXX
YYY
ZZZ
7/29/2013
XXX
YYY
ZZZ


Please Help me.
Posted
Updated 27-Jul-13 21:08pm
v2
Comments
Sergey Alexandrovich Kryukov 28-Jul-13 2:00am    
Some problems here:
1) http://whathaveyoutried.com?
2) What is "ListBox"? Which one? Fully-qualified name, please.
3) Please explain where did you stuck.
—SA
Member 9989624 28-Jul-13 3:11am    
its very simple query. I got it sorted.

1 solution

VB
For Each items In ListBox1.Items
            For Each items1 In ListBox2.Items
                ListBox3.Items.Add(items)
                ListBox3.Items.Add(items1)
            Next
        Next
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900