Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Tab control not updating correctly
Message
 
À
12/09/2007 10:34:59
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Versions des environnements
Environment:
VB 8.0
OS:
Windows XP SP2
Divers
Thread ID:
01253927
Message ID:
01254255
Vues:
18
Tony,

>When I create a new Business Maintenance Form there is a tab control on it with two tabs.
>
>If I add a couple new tabs, and change the color of a tab, or move a tab to a new position, they don't take. They always revert to their old positions and colors.
>
>How do I fix this?

I don't know about the colors of the tab---that should "just work". Are you setting the BackgroundColor property?

But regarding the tab page order...this is a Visual Studio feature. Even though it lets you order the tab at design time ultimately it changes the order at run time because the first two tab pages are instantiated before your code hits and thus are always first in the list. You can dynamically change the order of the the tabs by removing and adding them back in. Something like this:
this.TabControl.TabPages.Remove(this.ListPage);
this.TabControl.TabPages.Add(this.ListPage);
Best Regards,
Kevin McNeish
Eight-Time .NET MVP
VFP and iOS Author, Speaker & Trainer
Oak Leaf Enterprises, Inc.
Chief Architect, MM Framework
http://www.oakleafsd.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform