I'm trying to implement enhanced TabControl/TabPage classes, in order to achieve real TabVisible feature, since TabPage's Visible property doesn't work as expected.
I'm working with C# / WinForms / VS2005 / .Net FW 2.0; I've implemented the code this way:
http://csharp.pastebin.com/AUnzRQLw
And I've made a Form to test it, checking/unchecking CheckBoxes to show/hide some VisibleTabPage controls I've added (http..//csharp.pastebin.com/MkGJGx2G). But, after a certain number of clicks on CheckBoxes, in a random sequence, the application starts to allocate more and more memory, and use some considerable amount of CPU to show/hide TabPage controls.
Can anyone point me out where is the bug?
Thanks