Listbox
How to transfer one listbox field to another listbox alternative according select.like this image.
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Madhu KRank #1,514 · 1.1K reputationPosted Dec 5, 2010, 7:48 PM EST
foreach (ListItem item in ListBox1.Items)
{
if (item.Selected == true)
{
ListBox2.Items.Add(item);
}
}
CrishRank #1,486 · 1.1K reputationPosted Dec 6, 2010, 12:05 AM EST
This is perfect code for add item in list box.Thanks for code.