Click here to Skip to main content
15,881,852 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i want to put the list box items in textbox like this

listbox
1
3
5
7
10

to this...


textbox
1-3-5-7-10

its vb.net.

thank you,
Posted
Comments
[no name] 16-Sep-14 10:09am    
You need to rethink your logic, if you need to skip values in the listbox, like 2, 4, 6, 8 then when you are inserting these values, you should send them to the textbox them while populating the listbox on the fly.

1 solution

Loop through the list box items and concatenate them into a string. Assign this string to the textbox.
 
Share this answer
 
Comments
Member 10791395 12-Sep-14 5:07am    
i dont know how to do that,
will you help me on this plss.

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