>I have a form that contains a textbox more or less the width of the form. I need to be able to resize the width of the form based on the size of the text in the textbox.
>
>Thank you
The following 'code' may give you some idea:
thisform.label1.caption="qqqq"+thisform.label1.caption
thisform.lockscreen=.t.
thisform.label1.visible=.t.
thisform.label1.visible=.f.
thisform.lockscreen=.f.
thisform.width=thisform.label1.width
Label1 is invisible label, but containing the same text (as caption) as real form.textbox. Label.Autosize=.t. You may call similar code any time you change Textbox.Value, e.g. from Textbox.Interactive/Programmaticchamge event.
Edward Pikman
Independent Consultant