Io farei così:
foreach (Control objControl in this.Controls)
{
string pippo;
int pluto;
if (objControl.GetType() == typeof(TextBox))
{
pippo = objControl.Text;
}
else if (objControl.GetType() == typeof(ComboBox))
{
ComboBox cmb = (ComboBox)objControl;
pluto = cmb.SelectedValue;
}
}
Vincenzo
Programmatore sbilenco