C# 向程序新建的窗体中添加控件,控件需要先实例化,然后用controls.add添加到新的窗体中去
Form settingForm = new Form();
setForm deviceSet = new setForm();
settingForm.Controls.Add(deviceSet);
settingForm.Show();
2022-09-19 16:20:05
C# 向程序新建的窗体中添加控件,控件需要先实例化,然后用controls.add添加到新的窗体中去
Form settingForm = new Form();
setForm deviceSet = new setForm();
settingForm.Controls.Add(deviceSet);
settingForm.Show();