Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Tabcontrol

Status
Not open for further replies.

NeotheOne

IS-IT--Management
Jul 25, 2003
9
IT
Hi,
I'm developing my first Smartdevice application for Pocket PC and I experienced a strange behavior about tabcontrol.
I've a form with a tabcontrol that contains 5 tabpages.
Sometimes the order of the tabpages change automatically and randomly at run-time. And when this happens, sometimes the tabpage order at design-time is shown correctly !!!
Someone else have experienced the same problem ?
How can I change the tabpage order at run-time ?

Thanks

Best regards
 
You can access the TabPages property of the TabControl and use this to Add and Remove/RemoveAt the TabPages until you have achieved the result you want.

It might be easiest to remove each TabPage in turn and then add them back in the order you want them. Removing an item from the collection does not destroy it so you can add it back later.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top