Click here to Skip to main content
15,897,113 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i am trying to get the selected value from a comboBox but i only gets the datasource of the combobox.The comboBox's are automatically created. i used the following code:-
"
C#
for (int i = 0; i < count; i++)
 {
string  s4 = i.ToString() + "unit";
 cunit = (ComboBox)flowLayoutPanel1.Controls.Find(s4, true)[0];
}  


"
Posted
Updated 7-Oct-13 22:46pm
v2

1 solution

combobox.value return your value

and before it in for you must set combo.index=i
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900