Clear All textbox in group panel

My answer about this question which , how you can clear all the text box inside a group panel

Answer:

private void cleartextboxes()
{
Control Alltext;
    foreach (Control tempLoop_Alltext in GroupBox1.Controls)
    {
      Alltext = tempLoop_Alltext;
      if (Alltext isTextBox)
         {
            alltext.Text = string.Empty;
         }
    }
}