111,118
社区成员
发帖
与我相关
我的任务
分享
public void mmWriteLangCaption(Form AForm)
{
foreach(Control c in AFrom.Contorls)
{
//执行操作。
}
}
private void button1_Click(object sender, EventArgs e)
{
foreach (Control ctl in this.Controls)
{
MessageBox.Show(ctl.Name.ToString());
}
}
foreach(Controlc in this.Controls)
下面可以判断c是什么,或者通过反射取得他的属性值