/** * 显示待办任务窗体 */ private void button1_Click(object sender, EventArgs e) { splitContainer1.Panel2.Controls.Clear(); //清除右侧窗体控件 Task_Waitting taskWaitting = new Task_Waitting(); taskWaitting.TopLevel = false; taskWaitting.Dock = DockStyle.Fill; taskWaitting.FormBorderStyle = FormBorderStyle.None; splitContainer1.Panel2.Controls.Add(taskWaitting); taskWaitting.Show(); }
public void showPanel() { splitContainer1.Panel2.Controls.Clear(); //清除右侧窗体控件 Task_Waitting taskWaitting = new Task_Waitting(); taskWaitting.TopLevel = false; taskWaitting.Dock = DockStyle.Fill; taskWaitting.FormBorderStyle = FormBorderStyle.None; this.FormBorderStyle = FormBorderStyle.None; this.splitContainer1.SplitterDistance = 1; this.splitContainer1.Panel2.Controls.Add(taskWaitting); taskWaitting.Show(); //显示任务窗体 this.splitContainer1.Panel1.Hide(); this.menuStrip1.Hide(); }