Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Resizing Control Added At Runtime
Message
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Miscellaneous
Thread ID:
01390138
Message ID:
01390161
Views:
63
>I am adding a usercontrol to a form at runtime. If the control is on the form, and the form is resized, how do I resize the control? I'm not sure how to check to see of the control is on the form and how to get a reference to it.
>
>Thanks

If you add a control to a form at run time you have to be sure to add it to the form's Controls collection. Once it's there, you should be able to resize it along with the other controls by iterating through the collection.
Previous
Reply
Map
View

Click here to load this message in the networking platform