Why the control.OnHandleDestroyed() is not called when the parent TabPage is removed using the tabControl1.RemoveAt() call?
Thanks.
Why the control.OnHandleDestroyed() is not called when the parent TabPage is removed using the tabControl1.RemoveAt() call?
Thanks.
May be Dispose is not called on removed TabPages..You can add
Dispose();
or
GC.Collect();
GC.WaitForPendingFinalizers();
after removing to force garbage collector run its cycle.
Hope that helps.