开发者

Control on a tabpage

开发者 https://www.devze.com 2023-01-18 09:16 出处:网络
Why the control.OnHandleDestroyed() is not called when the parent TabPage is removed using the tabControl1.R开发者_开发百科emoveAt() call?

Why the control.OnHandleDestroyed() is not called when the parent TabPage is removed using the tabControl1.R开发者_开发百科emoveAt() 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.

0

精彩评论

暂无评论...
验证码 换一张
取 消