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