|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now! |
|
#1
|
|||
|
|||
|
Hi!
I'm trying some new fundas with VB 6.0 and database and fortunately, I found Tally (an Indian Software for Accounts). It has some worst interfaces i've seen but the good thing about it was it contains a combo box type thing in which when <Enter> is pressed the combo box drops down all items and moreover the user cannot select or enter anything beyond the items list of the CBO. How this happens. Can anybody help me explain it? Amit |
|
#2
|
|||
|
|||
|
I guess it is implemented that it uses the MS database object(like adodb object) to connect a database and get a table's fields name,at the end list the fields name into the combo box..
|
|
#3
|
||||
|
||||
|
A question, Amit - does the combo box only display this behavior when the cursor is on it and you hit <Enter>, or does it do it anytime the form is active and you press <Enter>. If it does it anytime the form is active, then I would say that the program is looking for the <Enter> key in the form_Keypress event. As far as having the fields from the database, you can load them manually via a loop, or you can set the datasource for the combo box to the column (field) in the table you wish to use. The combo box can be made to behave like a list box (so that you cannot type new values) by setting the style = 2 in the properties window.
Hope this helps.
__________________
Fisherman "Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius -- and a lot of courage -- to move in the opposite direction." - A.Einstein |
|
#4
|
|||
|
|||
|
Hi,Fisherman.I huzza what u said..It's a fast way to implement bhandariamit_in's aim!...THX again!..
|
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > Visual Basic Programming > Combo box with database |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|