Information générale
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Network:
Windows 2003 Server
>Hi Gang!
>
>Quickie Question.....
>
>I have two fields on the form
>
>field1 field2
>
>in line with each other.
>
>I will change the caption of field1 and field2 as needed.
>
>I want field2 to slide over to the right so as not to overlap with field1 when field1 changes its caption.
>
>I tried this....
>
>Thisform.field2.Left = Thisform.field1.Left + Thisform.field1.Width + 20
>
>But the width of field1 stays the same as what was in the designer.... it did not change!
>
>Any idea what I am doing wrong? Sometimes I feel so dumb..... sigh....
>
>Thanks
>Tommy
Make sure AutoSize is set to .T.. You may also need to turn off anchoring temporarily if the controls are anchored.
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