|// The TabControl.SelectedIndex Property works good. Thanks for that.
// But i doesnt know how i can do it in another thread.
// Now i have created an instance of a class inheritted from the Tabpage.
// That class contain a property which refer to a function with the delegate:
public delegate void delRemoveTabPage (TabPage tabPage1);
// When i create that instance i set the RemoveTabPage property
TabPage1.RemoveTabPage += new delRemoveTabPage (RemoveTabpage);
// My RemoveTabPage function is these
void RemoveTabpage (TabPage tabPage1)
// It works (This tabpage disapears but the close butten doesnt work anymore like i said before.)
// Well, i have an other possibility but i don't know if this is good:
// the TabPage.Hide ( ) method works perfect. And if i add code in the tabpage thad set his childs
null i think there will be not mush memory used for thad hidden tabpage. Is this a good method?