- Local time
- Today, 18:08
- Joined
- Jul 9, 2003
- Messages
- 17,039
I can assure you it wasn't easy!
This has been a very interesting exercise! I think it was 5 years ago I looked at this, so my recollection was vague to say the least... It is clear to me now that the problem I had with this code the first time around was my assumption that a Tab control contained pages. I spent a lot of time trying to find the code that would access the "collection of controls" - the "pages" within the Tab control. But a Tab control just doesn't work like that, the pages are separate pages, it's as if the pages are independent from the Tab control. You can test this yourself by putting two tab controls on a form and then try and name any two tabs with the same name that is tabs from either Tab control if your name " page1" on the first Tab control and "page1" on the second Tab control then you will get a clash.