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;
}

Himanshu Gupta86 reputationPosted Sep 15, 2017, 4:13 AM EDT
Himanshu Gupta86 reputationPosted Sep 12, 2017, 5:12 AM EDT
Ramesh PalanivelRank #372 · 6.8K reputationPosted Sep 12, 2017, 5:17 AM EDT
IsraelRank #1,223 · 1.5K reputationPosted Sep 12, 2017, 12:29 PM EDT
Ramesh PalanivelRank #372 · 6.8K reputationPosted Sep 12, 2017, 8:26 PM EDT
Himanshu Gupta86 reputationPosted Sep 12, 2017, 8:52 PM EDT
IsraelRank #1,223 · 1.5K reputationPosted Sep 13, 2017, 12:41 AM EDT
IsraelRank #1,223 · 1.5K reputationPosted Sep 15, 2017, 3:46 AM EDT
IsraelRank #1,223 · 1.5K reputationPosted Sep 19, 2017, 2:49 PM EDT