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!

Use AddRange method instead

ListBox2.Items.AddRange(ListBox1.Items);
commented: Solved! +9

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

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

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.