I\'m looking for an code example how to get all children of parent control.
I have no idea how do it.
foreach (Control control in Controls) { if (
Controls have a MyControl.Controls collection which you can do a foreach on.
MyControl.Controls
foreach
Each Control also has a Parent property which gives you the parent control.
Parent
You can write a recursive method if you need to go down an unknown number of levels.