Israel

Israel

  • 631
  • 1.3k
  • 217.3k

Displaying sequently combobox itens failed...

Sep 12 2017 8:57 AM
Hi!
 
On my Form I have:
1. One combobox
2. One label
3. One button 
 
I have write these simples codes to display all the combobox'items to my label sequently (or automatically) when I click my button. But its doesnt do it. Thanx so much.
 
private void button1_Click(object sender, EventArgs e)
for (int i = 0; i < comboBox1.Items.Count; i++)
{
label1.Text = comboBox1.SelectedItem[i].ToString();
}
label1.Text = label1.Text;
}
 
 
 

Answers (9)