I am working on a winforms application in C# that has a button inside the main page of a tabcontrol that will generate another tabpag
It´s works!
TabPage tabpage = (TabPage)this.Parent; TabControl tabControl = (TabControl)tabpage.Parent; tabControl.TabPages.Remove(tabpage);