foreach (Control c in Panel1.Controls) { if (c is CheckBox && (c as CheckBox).Checked) { count++; ListBox1.Items.Add(((CheckBox)c).Text.ToString()); } } Label1.Text = "Seçilen Sayısı: " + count;
Hiç yorum yok:
Yorum Gönder