ok, I have several functions of which each clear (initialize) each individual control encountered on a form (textbox, combobox, etc)
They work like a charm UNLESS those controls are on a tab that is on a tab. ex. I have a main tab control and the controls (tabs and its controls) get cleared fine. I have other tab controls sitting on that main one. THOSE tabs and the controls sitting on those aren't getting touched. following are the basic fuctions:
Originally posted by thephantom that works but it still doesn't catch any tab control that are stapled onto the other one.
I took it you need to clear textboxes or any control on the main tab and also a child tab that resides inside the main tab . Sorry , I think I didn't understand how you set up your controls . Can you explain more ?
ok, I have a MAIN tab control. and the functions work great for the tab pages, the controls and anything else that sits on the MAIN control.
but, I have a second tab control that sits on the main tab control and it doesn't get touched. I will post a picture of it in a second. It's weird though because there is a similar secondary tab control that DOES get worked on
Is the secondary tabcontrol inside (part of ) the main tabcontrol ? If yes , then the sample code I sent should solve this problem .
Just to double check that you have panel or groupbox on the secondary tab ?