This code sample is for getting names of all control on a panel using vb.net
Code
Private Sub BtnGetNames_Click(ByVal sender As System.Object, _ ByVal e As System.EventArgs) _ Handles BtnGetNames.Click For Each ctrl As Control In Panel1.Controls lstControlsNames.Items.Add(ctrl.Name) Next End Sub
You can also use this code sample for any parent control or container controls such as GroupBox etc.
Above article we can find only the all controls of any container, if you want to get the list of the all controls of the windows form you can use this method:
http://www.authorcode.com/how-to-get-the-list-of-all-controls-of-the-form/