Removing tab pages at runtime
If you've read any of my previous posts, you may know that I am working on a project that reads in lines from an input file and parses each line as it is read. I've got that working great, thanks to the your help. But I've run into another problem.
As the program reads each line from the input file, it creates a tab page and lists of labels and textboxes. Some of these files have hundreds of lines and I end up with hundreds of tab pages.
I want to make it so that when another file is opened, it deletes all of the previous tab pages and other controls. Is there a way to easily clear the form of all controls and start over again?