shankar_it
Freshman
- Joined
- Jul 6, 2005
- Messages
- 46
controls
I have a for loop which looks into all the controls and finds out if any one is a combo box.here is the code
foreach (Control ctrl in ctrls.Controls)
{
if(ctrl is ComboBox)
{
}
}
inside the if loop i wanted to select the first vaule in the collections in all the combo box.i am not sure of how to do it here inside the if loop.Can any one help me in this?
I have a for loop which looks into all the controls and finds out if any one is a combo box.here is the code
foreach (Control ctrl in ctrls.Controls)
{
if(ctrl is ComboBox)
{
}
}
inside the if loop i wanted to select the first vaule in the collections in all the combo box.i am not sure of how to do it here inside the if loop.Can any one help me in this?
Last edited: