在TabControl1_DoubleClick双击事件中:
TabControl1.TabPages.RemoveAt(TabControl1.SelectedIndex)
另外延伸一下,想隐藏某一个标签TAB,
TabControl1.TabPages.RemoveAt(TabControl1.TabPages[2]);
在TabControl1_DoubleClick双击事件中:
TabControl1.TabPages.RemoveAt(TabControl1.SelectedIndex)
另外延伸一下,想隐藏某一个标签TAB,
TabControl1.TabPages.RemoveAt(TabControl1.TabPages[2]);
转载于:https://www.cnblogs.com/hfzsjz/archive/2010/06/18/1760493.html