I have list of 20 combo box NAME: combobox1z to combobox20z. I want to set text of those combobox via list and for loop, and don't know if it is possible like:
for (int i = 1; i < 21; i++)
{
comboxbox[i]z.Text = stringlist[i];
}
I have list of 20 combo box NAME: combobox1z to combobox20z. I want to set text of those combobox via list and for loop, and don't know if it is possible like:
for (int i = 1; i < 21; i++)
{
comboxbox[i]z.Text = stringlist[i];
}
**
**
for (int i = 1; i < 21; i++)
{
ComboBox comboBox = new ComboBox();
comboBox = this.Controls.Find("comboxbox" + i.ToString()+"Z", false)[0];
for (int y = 1; y < 21; y++)
{
comboBox1.Items.Add (stringlist[y]);
}
}