﻿<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>StrataFrame Forum » StrataFrame Application Framework - V1 » WinForms (How do I?)  » Adding Wizard pages dynamically</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Tue, 09 Jun 2026 14:46:54 GMT</lastBuildDate><ttl>20</ttl><item><title>Adding Wizard pages dynamically</title><link>http://forum.strataframe.net/FindPost4701.aspx</link><description>I have a rather complicated wizard (simplifying a truly scary process) and I need to add pages to it dynamically.  This I think I figured out, just use the Add method of the PagesCollection.  However, can I set the position of the wizard page?  I.e. insert before or after an existing page?  Or change its position after it has been added? I don't see any methods or properties that would seem to indicate this can be done.&lt;br&gt;
&lt;br&gt;
Second, some of the pages I'll be adding dynamically will be template pages that when I actually add them, I'll need to customize them based on some data.  I'm assuming that just providing constructors with arguments to pass in the necessary data and then configure the template would work right?&lt;br&gt;
&lt;br&gt;
Thanks!</description><pubDate>Tue, 21 Nov 2006 16:11:32 GMT</pubDate><dc:creator>Greg McGuffey</dc:creator></item><item><title>RE: Adding Wizard pages dynamically</title><link>http://forum.strataframe.net/FindPost4711.aspx</link><description>Insert...that was what I was looking for. However, I might jump over to the enhancement area and make a request to allow reordering of wizard pages from the designer.  Thanks!</description><pubDate>Tue, 21 Nov 2006 16:11:32 GMT</pubDate><dc:creator>Greg McGuffey</dc:creator></item><item><title>RE: Adding Wizard pages dynamically</title><link>http://forum.strataframe.net/FindPost4710.aspx</link><description>You cannot change the index of a page once it has been added to the collection, but you can remove it and re-add it using the Insert() method of the WizardPageCollection class, so you can insert the page wherever you want.&lt;/P&gt;&lt;P&gt;As for templating your pages, yes it will work just fine... the pages are just panels with some extra properties.</description><pubDate>Tue, 21 Nov 2006 15:54:15 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item></channel></rss>