seçilenleri seçim sırası göre sırala
unknown
csharp
2 years ago
512 B
13
Indexable
string[] dizi = new string[3];
int sayac = 0;
private void checkedListBox1_ItemCheck(object sender, ItemCheckEventArgs e)
{
dizi[sayac] = checkedListBox1.SelectedItem.ToString();
sayac++;
}
private void button1_Click(object sender, EventArgs e)
{
for (int i = 0; i < checkedListBox1.CheckedItems.Count; i++)
{
listBox1.Items.Add(checkedListBox1.CheckedItems[i]);
}
for (int i = 0; i < dizi.Length; i++)
{
listBox2.Items.Add(dizi[i]);
}
}Editor is loading...
Leave a Comment