Hi Andreas.
It looks like a bug to me
PUBLIC oForm AS Form
oForm = CREATEOBJECT("Form")
oForm.AddObject("cbo1", "cbomy")
oForm.Show()
WAIT WINDOW oForm.cbo1.Margin
RETURN
DEFINE CLASS cbomy AS combobox
Height = 24
Margin = 1
Width = 100
Name = "cbomy"
ENDDEFINE
>Hi,
>
>I have a combobox class with margin property set to 1
>or 0. Using this class at design time works fine.
>Adding e.g. a container class which includes this
>class at runtime overwrites the margin property
>with default 2. It had worked fine with VFP7.
>
>
--sb--