Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Cannot find TabPage control on Toolbox
Message
 
À
26/04/2004 01:27:02
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Divers
Thread ID:
00898042
Message ID:
00898170
Vues:
18
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform