Hi all,
I am generating comboboxes in runtime in a for loop.
Then, when click ok i want to get the selectedItems.
So how would i do this.
PLZ help me.
this is how i generate comboboxes in th page load.
NewBookEntry nbe = (NewBookEntry)Application.OpenForms["NewBookEntry"];
int lable = 0;
for (int c = 0; c < int.Parse(nbe.TextBox2.Text); c++)
{
ComboBox ioj = new ComboBox();
ioj.Items.AddRange(new object[] {
"Good",
"Medium Damaged",
"Highly Damaged"});
ioj.SelectedIndex = 0;
tableLayoutPanel1.Controls.Add(ioj, 1, c);