General information
Category:
Coding, syntax & commands
Environment versions
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.
Previous
Next
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