添加动态控件.rar
publicpartialclassForm1:Form { publicForm1() { InitializeComponent(); } Labellab=newLabel();//定义在到事件外面,这样多个按钮能公用该变量 privatevoidbutton1_Click(objectsender,EventArgse) { #region//动态添加多个按钮
publicpartialclassForm1:Form { publicForm1() { InitializeComponent(); } Labellab=newLabel();//定义在到事件外面,这样多个按钮能公用该变量 privatevoidbutton1_Click(objectsender,EventArgse) { #region//动态添加多个按钮