Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Cannot find TabPage control on Toolbox
Message
 
To
26/04/2004 01:27:02
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Miscellaneous
Thread ID:
00898042
Message ID:
00898170
Views:
17
Chen,

>OK, my panic is over. By right click on the TabControl, I am able to add TabPages. However, the added TabPages are strait from .NET Framework. I still need to dive into the codes to change the declarations of the added tabs to use my framework.

You're right...the VS .NET 2003 builders always add .NET Framework classes to the various collections, although this will change in Whidbey (the next version of .NET). For now, you can go to the form's code and change the control from :
System.Windows.Forms.TabPage
To:
OakLeaf.MM.Main.Windows.Forms.mmTabPage
You will need to do this in two places for each tab page...one where the tab page variable is declared, for example:
protected OakLeaf.MM.Main.Windows.Forms.mmTabPage PropertiesPage;
And one where the tab page is instantiated, for example:
this.PropertiesPage = new OakLeaf.MM.Main.Windows.Forms.mmTabPage();
The easiest way to do this, is to add all the tab pages you want, then in VS .NET, go to the menu and select Edit | Find and Replace | Replace in Files, and do the replacement using this dialog.

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
Reply
Map
View

Click here to load this message in the networking platform