If you add a datacontrol, you will see the data binding properties come
alive in the combo box. Then you simply configure them. However, using a
datagrid that is bound provides you with IMHO, greatly extended programming
capabilities. With some imagination, the screens are cleaner. If you
disconnect your recordsets before you bind, you can use data marshalling to
load them back into the database and thus enable user editing... and so on.
To bind the datacontrol... right click it's properties and point it to your
database. You will need to reference the datacontrol using the component
dropdown from the project menu. You will also need a reference to the MS
ado (if you use ado and I would recommend you do as it is still supported)
and if possible choose the OLEDB components (designated by the "(OLEDB)" at
the end of the component description).
Finally, examine one of the properties using your intellisense (the little
descriptions that come up once you bind your object) and then highlight the
property listed in the intellisense and hit F1. A good example will come up
and direct you from there.
Giac
"Lennart Nielsen" <lnielsen.TakeThisOut@uni-systems.com> wrote in message
news:a4Pwc.881$T46.59261@news.uswest.net...
> Can you populate a forms 2.0 combobox without using additem, rather by
> binding it directly to an Access database? I want to use the Combobox
rather
> than the Datacombo for some of the other properties it posses.
>
> Nordtorp
>
>
><!-- ~MESSAGE_AFTER~ -->
>> Stay informed about: Filling comboxbox without using additem