|
-
Aug 10th, 2007, 03:33 PM
#1
Thread Starter
New Member
dbcombo vb6 search
Does anyone know link for downloading DBComboBox for Visual Basic 6.0?
-
Aug 10th, 2007, 04:45 PM
#2
Re: dbcombo vb6 search
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.
-
Aug 10th, 2007, 05:18 PM
#3
Thread Starter
New Member
Re: dbcombo vb6 search
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.
-
Aug 11th, 2007, 08:49 AM
#4
Re: dbcombo vb6 search
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|