StrataFrame Forum
Home      Members   Calendar   Who's On
Welcome Guest ( Login | Register )
      



PanelManager Page IndexExpand / Collapse
Author
Message
Posted 10/06/2006 12:47:25 PM


StrataFrame User

StrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame User

Group: StrataFrame Users
Last Login: Today @ 3:58:27 PM
Posts: 310, Visits: 450
Is there a way to access the Index of a PanelManager page?  I notice they each have an index when you view them in the page collection.  Is there a way to access that in code?  All I can find is TabIndex which is not what I want.  I would like to be able to do something like the following....

lstPanels.DisplayMember = "PageDescription"
lstPanels.ValueMember = "PageIndex"   '<---This would be the index property of the page

For Each panel as PanelManagerPage in PanelManager.PageCollection
   lstPanels.Items.Add(panel)
Next

Then on the SelectedIndexChanged event of lstPanels I would just have to do something like this....

PanelManager.SetActivePage(lstPanels.SelectedValue)

So, I just need to know how I can access this 'PageIndex' property I'm wanting to use.

Post #3363
Posted 10/06/2006 1:49:37 PM


StrataFrame Developer

StrataFrame Developer

Group: StrataFrame Developers
Last Login: Today @ 3:20:54 PM
Posts: 4,769, Visits: 4,731
The index of the page is determined by the order they appear in the PageCollection on the PanelManager.  You can manage this through the form designer.  You can then reference a page by object reference or by index.  You can also set the active page by index or reference.  See below.

Accessing Options
Me.PanelManager1.CurrentPageIndex
Me.PanelManager1.CurrentPage

Page Setting Options
Me.PanelManager1.SetActivePage(Index)
Me.PanelManager1.SetActivePage(PanelPageReference)

 

Post #3367
« Prev Topic | Next Topic »


Reading This TopicExpand / Collapse
Active Users: 0 (0 guests, 0 members, 0 anonymous members)
No members currently viewing this topic.
Forum Moderators: Ben Chase, Trent L. Taylor, Steve L. Taylor

PermissionsExpand / Collapse

All times are GMT -6:00, Time now is 5:36pm

Powered by InstantForum.NET v4.1.4 © 2008
Execution: 0.063. 12 queries. Compression Enabled.
Site Map - Home - My Account - Forum - About Us - Contact Us - Try It - Buy It

Microsoft, Visual Studio, and the Visual Studio logo are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries.