Array of Tab Pages problem
-
My problem is that I need to create an array of tabbed pages so that I can reference each pages components. But when I do create the array I can't access the components, can anyone give me a hand?
Freedom is the right to say that 2+2=5 if this is so everything else will follow.
-
My problem is that I need to create an array of tabbed pages so that I can reference each pages components. But when I do create the array I can't access the components, can anyone give me a hand?
Freedom is the right to say that 2+2=5 if this is so everything else will follow.
Each element in your array needs to be of the type of a control that you create to include those components. If it's an instance of the tab page, then it's just going to have the standard tab page elements. And that means you need an array of tab pages, and to cast each one as you need to. I think you need to reconsider your design.
Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )