开发者

Control on a tabpage

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜