title: Clear multiple textboxes present inside a groupbox which is inside a panel
body: <pre><code>    Public Sub ClearTextBoxes(ByVal Frm As Form)
       Dim Ctl As Control
       For Each Ctl In Frm.Controls
          If TypeOf Ctl Is TextBox Then Ctl.Text = ""
          If TypeOf Ctl Is GroupBox Then
              Dim Ctl1 As Control
              For Each Ctl1 In Ctl.Controls
                  If TypeOf Ctl1 Is TextBox Then
                      Ctl1.Text = ""
                  End If
              Next
          End If
          Next
        End Sub
  </code></pre>
  
  <p>I have this method, but the problem is, my groupboxes are present inside a panel, just confused a lot by these controls.</p>