title: Loop through all Checkboxes on a form
body: <p>I need to loop through all Checkboxes on a form and get the Tag property for each. The Checkboxes are in Groupboxes, and nested Groupboxes. Code I have works for the main form, it is not getting the values from the Checkboxes in the Groupboxes</p>
  <p>...</p>
  <pre><code>            i = 0
  
              For Each ctrl As Control In Me.Controls
  
                  If (TypeOf ctrl Is CheckBox) Then
  
                      'Resize array
                      ReDim Preserve g_str_Array(i)
  
                      'Add Tag to array
                      g_str_Array(i) = CStr(ctrl.Tag)
  
                      i += 1
  
                  End If
  
              Next
  </code></pre>
  <p>...</p>