You can try with below code -
foreach (Control c in this.Controls)
{
String value = String.Empty;
switch (c.GetType().Name.ToString())
{
case "TextBox":
value = c.Text;
MessageBox.Show(value);
break;
case "CheckBox":
value = (c as CheckBox).Checked.ToString();
MessageBox.Show(value);
break;
}