获得某控件的父控件(容器)中的所有控件

foreach (Control c in this.textBox1.Parent.Controls)

原文地址:https://www.cnblogs.com/swtool/p/3840176.html