Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
User Control Question
Message
De
23/06/2006 12:35:09
Chris Bohling
Myers and Stauffer LC
Shawnee, Kansas, États-Unis
 
Information générale
Forum:
ASP.NET
Catégorie:
Formulaires
Divers
Thread ID:
01131113
Message ID:
01131221
Vues:
16
>Hello All, I just created my first user control in VS 2005, it consists of a TabControl with two pages, and several textboxes and labels on each page, I built it, and added it to my toolbox, however !, having placed the control on a form, I cant access any of the controls within it...

If I understand your question right:

The first thing I would look at is the Modifiers property in the property list for each contained control the custom TabControl class. By default, Modifiers is set to Private. You need to use one of the other options: Protected, Internal, or Public.

Also, you might need to apply design-time attributes on the TabControl and its contained controls. See the Visual Studio help topics "Developing Custom Windows Forms Controls with the .NET Framework" and "Attributes in Windows Forms Controls."

Chris
Christopher Bohling, Consultant
http://www.ChristopherBohling.com
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform