>Dan,
>The form (with the resize code) was VMP, as were the original textboxes I worked with. I tried the addobject() with plain VFP which didn't resize at all and with VMP which not only didn't resize but moved to top=0 and left=0 and width = original class size, as I said earlier.
>
Barbara- I tested with what I could put together that you are doing:
Blank form, one button with click code:
SET CLASSLIB TO c:\myclasses.vcx
THISFORM.Addobject('mytext1','mytext')
THISFORM.MyText1.Left = 50
THISFORM.MyText1.Top = 50
THISFORM.MyText1.Visible = .T.
Running the form, clicking the button, and resizing the form does not cause the behavior you describe...
Can you break your process down incrementally until you find the sinister factor?
Erik Moore
Clientelligence