منتدى فيجوال بيسك لكل العرب | منتدى المبرمجين العرب
listbox + listbox فى listbox - نسخة قابلة للطباعة

+- منتدى فيجوال بيسك لكل العرب | منتدى المبرمجين العرب (http://vb4arb.com/vb)
+-- قسم : قسم لغة الفيجوال بيسك VB.NET (http://vb4arb.com/vb/forumdisplay.php?fid=182)
+--- قسم : قسم اسئلة VB.NET (http://vb4arb.com/vb/forumdisplay.php?fid=183)
+--- الموضوع : listbox + listbox فى listbox (/showthread.php?tid=17633)



listbox + listbox فى listbox - Mohamed20 - 11-10-16

اريد اضافة items موجودة فى 3 listbox الى listbox اخرى

كود :
       For Each item In ListBox1.Items
           For Each item2 In ListBox2.Items
               For Each item3 In ListBox3.Items
                  ListBox4.Items.Add(item + item2 + item3)
               Next
           Next
       Next
لاكن هذا الكود يمككنى من اضافة اول item فقط هل من حل


RE: listbox + listbox فى listbox - silverlight - 11-10-16

PHP كود :
  ListBox4.Items.AddRange(ListBox1.Items)
 
       ListBox4.Items.AddRange(ListBox2.Items)
 
       ListBox4.Items.AddRange(ListBox3.Items



RE: listbox + listbox فى listbox - Mohamed20 - 11-10-16

(11-10-16, 05:29 PM)silverlight كتب :
PHP كود :
  ListBox4.Items.AddRange(ListBox1.Items)
 
       ListBox4.Items.AddRange(ListBox2.Items)
 
       ListBox4.Items.AddRange(ListBox3.Items

جزاك الله خير