Information générale
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
>Hi everybody,
>
>I have a mover class. It is a container with label at the top, two listboxes and 4 command buttons. I want to make listboxes change size when I change size of my cntMover. I want buttons to change position to always be in the middle of the container (the buttons are individual buttons, not the command group).
>
>I'm not sure if I can achieve what I want using anchor property or I should program resize event.
Yes, you can get what you want with Anchor. Set the left-hand listboxes to 135. Set the right-hand listbox to 45. Set the buttons to 768.
>
>Also is it possible to achive this effect in design time as well as in run-time?
No anchoring is a run-time feature.
Tamar
Précédent
Suivant
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