Hello, you can have an idea how to check how many tabs are open in the project, and if there are more than one, delete all and leave only the first one. ??? , I thought, I was combining and I have no idea - probably only in c #?
how to check how many tabs are open in the project, and if there are more than one, delete all and leave only the first one. ??? , I thought, I was combining and I have no idea - probably only in c #?
//If tabs are more than one
if (instance.AllTabs.Length>1){
//Delete all and leave only the first one
for (int i=1; i<instance.AllTabs.Length; i++){
instance.AllTabs[i].Close();
i--;
}
}