Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
User Control Question
Message
From
23/06/2006 12:35:09
 
General information
Forum:
ASP.NET
Category:
Forms
Miscellaneous
Thread ID:
01131113
Message ID:
01131221
Views:
15
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform