Information générale
Catégorie:
Code, syntaxe and commandes
>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.
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement