احتياج به كدي دارم كه فقط يك آيتم را از آيتم هاي كمبوباكس را حذف كند : فرض كنيد اعداد 1 تا 6 جز ايتم هاي آن هستند حالا فقط ميخواهم 4 را از آن حذف كنم بدون اينكه از اول آيتمها را تعريف كنم
حذف فقط يك آيتم از كمبوباكس
Collapse
X
-
-
با سلام
دستور زیر شاید مشکل شما رو حل کند
box.RemoveItem index
The box and index arguments are the same as for AddItem.
For example, to remove the first entry in a list, you would add the following line of code:
Combo1.RemoveItem 0
To remove all list entries in a combo box, use the Clear method:
Combo1.Clear
-
با تشكر از پاسخ شما اما اين كد كاري را كه من ميخواهم نميكند فرض كنيد ايتمهاي موجود كلمات "علي" "جواد" " محسن" باشد من ميخواهم مثلاً آيتم "جواد" را حذف كنيدبا سلام
دستور زیر شاید مشکل شما رو حل کند
box.RemoveItem index
The box and index arguments are the same as for AddItem.
For example, to remove the first entry in a list, you would add the following line of code:
Combo1.RemoveItem 0
To remove all list entries in a combo box, use the Clear method:
Combo1.Clear
کامنت



کامنت