Remove ve RemoveAt Metotları: ListBox’taki elemanlardan istenen eleman indis numarasına göre veya String değerine göre listeden silinebilir. Add Metodunda anlatılan ListBox için;
ListBox1.Items.RemoveAt(1)
Yazılırsa listeden Personel elemanı silinmiş olur. Aynı işlem şu kod satırı ile de gerçekleştirilebilir.
ListBox1.Items.Remove(“Personel”)
Hiç yorum yok: