foreach (TextBox c in this.Controls)
{
foreach (Label lb in this.Controls)
{
if (c.Text == string.Empty)
c.Visible = false;
else
{
c.Visible = true;
if (c.Visible == lb.Visible)
lb.Visible = true;
else
lb.Visible = false;
}
}
}