实现效果:

知识运用:
TabControl控件的TabPages属性的Remove方法
public TabControl.TabPageCollection TabPages{ get; }
public vodi Remove(TabPage value)
实现代码:
private void button1_Click(object sender, EventArgs e)
{
if (tabControl1.SelectedTab!=null)
tabControl1.TabPages.Remove(tabControl1.SelectedTab);
}
浙公网安备 33010602011771号