📌  相关文章
📜  windows 窗体遍历所有控件 - C# 代码示例

📅  最后修改于: 2022-03-11 14:48:49.730000             🧑  作者: Mango

代码示例1
private void LoopThroughControls(Control parent)
{
    foreach (Control c in parent.Controls)
    {
        if (c.GetType() == typeof(YourType)) {
            //Do stuff
        } else {
            LoopThroughControls(c);
        }
    }
}