I'm trying to find the values in textboxes, checkboxes and radiobuttons in a windows form so I'm trying to use this function
VB Code:
  1. For Each control In Me.Controls
  2.     RichTextBox1.Text = RichTextBox1.Text & Chr(13) & control.Name
  3. Next

But I have the following controls inside other controls and I can't find seem to be able to find them. For instance, the textbox (txtPtName) is inside a table layout panel (TableLayoutPanel1) and the TableLayoutPanel1 is inside a panel (Panel1)

Panel1
--- TableLayoutPanel1
-------- txtPtName


My question is: How can I search for every checkbox, radiobutton or a textbox without searching for them inside other controls? I really need this please.. thanks