首页  编辑  

根据控件名获得控件实例

Tags: /C#/界面处理/Form/   Date Created:

private void button1_Click( object sender , EventArgs e)

{  

    Control [] vControls = Controls . Find( "button1" , true );

    foreach ( Control vControl in vControls)

       vControl . Text = "Zswang ;

}