StrataFrame Forum

Wizard Control

http://forum.strataframe.net/Topic5275.aspx

By Paul Chase - 12/13/2006

How do I move to a specific? I have 5 pages and depending on user selection on page 1 the next page may be page 2 or page 3.
By Paul Chase - 12/13/2006

got it I am removing the unneeded pages from the pages collection
By StrataFrame Team - 12/13/2006

Hehe, removing them is certainly an option Smile

Other than that, you can handle the NextClicked event and set the NextPageToShow property on the event args to specify the next page that should show.  So, if they select option 1 in the first page, then you set e.NextPageToShow = Page2, else e.NextPageToShow = Page3, or something like that.

By StrataFrame Team - 12/13/2006

Hehe, excuse me... it's NextPageToLoad, not NextPageToShow.
By Paul Chase - 12/13/2006

Thanks Ben that would be a better option.

Rather than create another post can you tell me how you have the list view in DDT set so it does not wrap.

I am trying to recreate it within a data import wizard but once I add enough records to hit hit the bottom of the control it wraps back to the top instead of continuing down and scolling. I just cannot seem to find what switch to flip

This is the list view I mean.

By StrataFrame Team - 12/13/2006

To get the list view to auto-scroll, you need to use the EnsureVisible() method of the listview.  Each time you add a new item, just call this:

myList.EnsureVisible(myList.Items.Count - 1)

That forces it to scroll to the bottom item in the list.

By Paul Chase - 12/13/2006

Thanks I'll give it a shot