Does anyone know link for downloading DBComboBox for Visual Basic 6.0?
Printable View
Does anyone know link for downloading DBComboBox for Visual Basic 6.0?
Is there a particular reason you want a DBCombo, rather than a normal one that you fill with data from the database? It doesn't take much more effort, and makes things much easier later if you decide you want anything non-standard (as well as help from more people here - very few use bound controls). If you want to try this, see the ADO Tutorial link in my signature, which contains an explanation and example (all you need is the code in Form_Load and Form_Unload).
If you have an appropriate version of VB6, you already have the DBCombo (if not, you can't use it anyway). To get it in the toolbox, you need to go to 'Project' -> ' Components', and select the relevant item (I'm not sure what that is tho!)... but as I implied above, I wouldn't recommend it.
I want to add items in the list in runtime. I know how to do that, but they are gone when i start the program next time. I also bind the combo whit my access2000 base, but i don't know how to retrive the items from the field and add them in the list every time when i start the program. If you know how to do that whit the ComboBox from VB6 i do not need to search for DBComboBox.
See the ADO Tutorial link in my signature - it shows how to connect to the database with code (rather than a data control), and how to fill a combo from the database.
There is extra code you don't need (you only need the code in Form_Load and Form_Unload, and the Declarations section), but you should be able to work that out from the comments - if you can't get it working, show us what you come up up, and we'll help correct it.