Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Exposing A Control On A User Control
Message
From
06/04/2009 08:57:50
John Baird
Coatesville, Pennsylvania, United States
 
 
To
06/04/2009 00:46:46
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Miscellaneous
Thread ID:
01392880
Message ID:
01393398
Views:
42
>>I have created a user control which is a composite of other controls. It is possible to or how do I expose a control on my user control? In other words, I want to make a listbox on my control available in design and/or runtime.
>
>You can try this - taken from my blog post- http://weblogs.foxite.com/bernardbout/archive/2008/09/09/6725.aspx:
>
>When you add any object to the control, in the background VB generates the code to implement this object. In our case if it is the button added, it is implemented here, always Friend by default.

>
>You can change Friend to Public and it should be exposed now.
>
>Note that I have not actually tried this in a normal control. Only an Activex but the theory is the same. You will also need to enable the show All files button to see these files. Check out the blogpost if only to get the proper instructions to do this Visually :)

There is a property on the UI to allow this. Maybe you should read other's replies before adding to a discussion.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform