代码:
/// <summary> /// 递归方法清空tab页面 /// </summary> private void ClearTabControlPages() { if (tabControl1.TabPages.Count > 0) { for (int i = 0; i < tabControl1.TabPages.Count; i++) { this.tabControl1.TabPages.RemoveAt(i); } ClearTabControlPages(); } }
时间: 2024-10-07 15:31:17