General information
Category:
Coding, syntax and commands
>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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only