954,525 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Problem in TRansferring of Item from ListBox1 to ListBox2 Please Help!!!!

Please Help Me With the codes Im currently having a problem with code
// Im trying to Transfer the Item Collection properties of te LisBox1 to ListBox2 but im having an error of result.

Here is the code C#

ListBox2.Items.Add(ListBox1.Items);


Plese help with me the code!

Thank you!

migz.natividad
Newbie Poster
3 posts since Jun 2009
Reputation Points: 10
Solved Threads: 0
 

Use AddRange method instead

ListBox2.Items.AddRange(ListBox1.Items);
Ramy Mahrous
Postaholic
2,196 posts since Aug 2006
Reputation Points: 480
Solved Threads: 276
 

Thank you for the reply Ramy. I'll try this code once I get home. Thank you!

migz.natividad
Newbie Poster
3 posts since Jun 2009
Reputation Points: 10
Solved Threads: 0
 

Trust me, it works :) please mark it as solved.

Ramy Mahrous
Postaholic
2,196 posts since Aug 2006
Reputation Points: 480
Solved Threads: 276
 

This question has already been solved

Post: Markdown Syntax: Formatting Help
You