Form f = new Form(); alarmForm.TopLevel = false;//1. 关闭窗体为顶级窗体属性 HomePanel.Controls.Clear();//2. omePanel集合清空 HomePanel.Controls.Add(f); //3. ePanel加载别的窗体 f.Show();//弹框
Form f = new Form(); alarmForm.TopLevel = false;//1. 关闭窗体为顶级窗体属性 HomePanel.Controls.Clear();//2. omePanel集合清空 HomePanel.Controls.Add(f); //3. ePanel加载别的窗体 f.Show();//弹框