Hi Jayesh,
Actually it is a true combobox class. If I look at its BaseClass it says Combobox. The myform.mycombo.text1. reference occured when coded directly into a combobox and when saved in a combobox class. I think VFP is doing a little slight-of-hand behind the scenes for the combobox's functionality and that's where the text1 object is coming from. Thanks for the reply though.
>Hi there,
>
>I think you have dropped combo on a Container Class because as you said above
>it goes to myform.mycombo..text1.Destroy(). Since Combo is not a container object, there should not be any .text1 reference.
>
>If you want to create a pure combo box class, recreate it and base it on ComboBox not on any Container Class.
Colin Magee
Team Leader, Systems Development
Metroland Media Group Ltd.
Mississauga, Ontario, Canada
cmagee@metroland.comNever mistake having a career with having a life.