tags:

views:

11

answers:

1

Why the control.OnHandleDestroyed() is not called when the parent TabPage is removed using the tabControl1.RemoveAt() call?

Thanks.

A: 

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.

nihi_l_ist
@nihi: I am trying to understand the reason not to find a workaround.
devdept