📜  检查面板是否有控制器 c# 代码示例

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

代码示例1
if(panel.Controls.Count > 0) 
    {
        return; // Panel already contains a control, stop executing the code
    }