﻿<?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?)  » How to update a wizard after adding pages in code?</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 18:26:09 GMT</lastBuildDate><ttl>20</ttl><item><title>How to update a wizard after adding pages in code?</title><link>http://forum.strataframe.net/FindPost4718.aspx</link><description>I have a wizard that has only a single page at design time, then I add a bunch at runtime (all of which is working great). The only hick-up is that the when the wizard is initially shown, there is no next button only a finish button. The buttons shown are: back (disabled), finish (enabled) and Cancel (enabled). This is correct for a wizard with one page (as it is in design mode).&lt;br&gt;
&lt;br&gt;
I'm using a tree view as a second navigation control and when I move to any other page then back to the first page, the buttons are then correct (back, next and cancel all disabled/enabled correctly). So the question is how do I update the wizard so it updates the controls after adding pages in code? I tried Refresh and Update but neither worked.</description><pubDate>Wed, 22 Nov 2006 13:12:51 GMT</pubDate><dc:creator>Greg McGuffey</dc:creator></item><item><title>RE: How to update a wizard after adding pages in code?</title><link>http://forum.strataframe.net/FindPost4740.aspx</link><description>You can have as many Finish pages as you want.&amp;nbsp; Which only makes sense in the event that you have different endings based on what pages are selected within the wizard.&amp;nbsp; But by default, all pages NavigationType is Automatic, so only the last page will be a Finish page.</description><pubDate>Wed, 22 Nov 2006 13:12:51 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: How to update a wizard after adding pages in code?</title><link>http://forum.strataframe.net/FindPost4738.aspx</link><description>I'll have to get to that soon, but the problem I was having was that I had a single page defined at run time, so I'm guessing that the wizard automatically made it the finish page. When I showed the wizard, I added a bunch of pages (50+), but the first page was likely still marked as being the finish page....hmmm...so maybe I can either set the navigation type of the first page to normal.  Also, can there only be one finish page?  (then setting another would clear the first page, right?)</description><pubDate>Wed, 22 Nov 2006 13:02:59 GMT</pubDate><dc:creator>Greg McGuffey</dc:creator></item><item><title>RE: How to update a wizard after adding pages in code?</title><link>http://forum.strataframe.net/FindPost4736.aspx</link><description>One thing you can do here is set the Navigation type of a page to FinishPage.&amp;nbsp; This will force the page to be a Finish page rather than just being the last page in the collection.</description><pubDate>Wed, 22 Nov 2006 12:25:30 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: How to update a wizard after adding pages in code?</title><link>http://forum.strataframe.net/FindPost4729.aspx</link><description>Thanks! I also had to hide the finish button and show the next button so my code looked like:&lt;BR&gt;&lt;BR&gt;[codesnippet]Me.MyWizard.cmdFinish.Navigation.Visible = False&lt;BR&gt;Me.MyWizard.Navigation.cmdNext.Visible = True&lt;BR&gt;Me.MyWizard.SetNavigationButtonStatus(StrataFrame.UI.WizardNavigationButtons.Next,StrataFrame.UI.WizardNavigationButtonStatus.Enabled)[/codesnippet]</description><pubDate>Tue, 21 Nov 2006 22:39:12 GMT</pubDate><dc:creator>Greg McGuffey</dc:creator></item><item><title>RE: How to update a wizard after adding pages in code?</title><link>http://forum.strataframe.net/FindPost4721.aspx</link><description>Just manually set the button status.&amp;nbsp; There are a lot of factors as to how to control the state of buttons...but you can always overwrite any native behavior by simply setting the button status:&lt;/P&gt;&lt;P&gt;[codesnippet]Me.MyWizard.SetNavigationButtonStatus(StrataFrame.UI.WizardNavigationButtons.Next,StrataFrame.UI.WizardNavigationButtonStatus.Enabled)[/codesnippet]</description><pubDate>Tue, 21 Nov 2006 19:03:40 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item></channel></rss>