Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Tab control not updating correctly
Message
 
To
12/09/2007 10:34:59
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Environment versions
Environment:
VB 8.0
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01253927
Message ID:
01254255
Views:
20
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform