TabPage动态添加From public TabPage Add(int count) tabControl1.TabPages.Clear(); for (int i = 1; i <= count; i++) { TabPage tabPage = new TabPage(); tabPage.Name ="tb_"+ i.ToString(); tabPage.Text =i.ToString(); tabControl1.TabPages.Add(tabPage); PowerForm form = new PowerForm(); form.TopLevel = false; form.Dock = DockStyle.Fill; form.FormBorderStyle = FormBorderStyle.None; tabPage.Controls.Add(form); form.Show(); } }