>>>I would suggest to have one form with the 2-page pageframe, and instantiate the necessary number of pages at runtime with .Addobject method. <<
>
>
>I'm a bit cloudy about this technique. Where is the addobject method located? Is it in the original 2-page pageframe? What would that code look like?
>
>Thanks.
If this is all you want to do, the same can be achieved by adjusting the pagecount property at runtime!
However, I imagine you are going to have to put controls onto these pages again I am assuming at development time. It is possible to generate classes by adding records to a vcx file, but you will have to have a good understanding ot the structure first. My recommeded technique would be to
1. Create two classlibraries, one containg a subclass of your form.
2. Open them up in something like the project manager
3. Drag and drop the form class from one library to the second library
4. Reaname the new class
5. Drag and drop it back
6. Add the new page and drop the necessary controls on it.
Hope this helps
Mace
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only