tabcontrol: Problem accessing textboxes on other tabpages
Posted on 2004-09-17
I have a VB.Net MDI project with a child form that has a tabcontrol and serveral tabpages on it. I have textboxes and datagrids bound to several datasets. I am having a problem getting information that is located in textboxes on other tabpages. After doing a lot of searching I have read that the solution is to go through all of the tabpages to make them active (aware?) at load time. Will this work even if there is nothing bound at load time? Is there a better answer?
the code I have used to step through the tabpages goes like this:
tabOrderEntry.SelectedTab = tabCustomer
tabOrderEntry.SelectedTab = tabBillTo
tabOrderEntry.SelectedTab = tabOrder
tabOrderEntry.SelectedTab = tabItems Etc.
Is there a way to make all of the textboxes from all of the tabpages accessable at the same time, or a way to reference them?
Thanks for any help.