移除控件

要想移除一个控件,需要从此控件的父控件中调用Remove()函数来移除。如下:

panel1.Controls.Remove((panel1.Controls.Find("字段comboBox" + i.ToString(), true)[0]));

你可能感兴趣的:(移除控件)