>>>Hello,
>>>
>>>In VFP8, is it possible to add controls in a listbox and how ?
>>>I would like to create an interface like the table designer in vfp with fieldname as a textbox, datatype as a combobox and so on...
>>>
>>>Thanks for your help.
>>>
>>>Regards,
>>>
>>>Steph
>>
>>Hi Steph,
>>
>>Not with a listbox, but you can do it with the grid, by placing the combobox, etc. to the appropriate column(s).
>
>Thank you Nick.
>Problem is that I want to use listbox features such as multiselect items, or drag and drop between 2 listbox.
>
>Steph
You can do multiselect in grid too, for example by adding a logical field to the grid RecordSource and a checkbox in to that grid column (column.Sparse = .f.). The Drag&Drop between two grids is also possible.
But you cannot place comboboxes or any other controls into the listbox by design, as the listbox is not a container class.
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro
"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison