Currently, I do this using ThisTabControl.Items.RemoveAt(ThisTabControl.Selec tedIndex) where ThisTabControl is the TabControl for the window. It certainly closes and removes the specific tab, but it does not appear to invoke Cleanup() for the tab. It seems one has to close the NTWindow for Cleanup of all individual tabs to be invoked.
What is the appropriate way to programatically close an NTTabPage and ensure Cleanup is invoked at time of closure? Is it as simple as explicitly invoking Cleanup in the close method?
Thanks.
Aside: No matter how many times I edit the above, the Forum software adds a space in the middle of SelectedIndex. Hmmmm.
Comment