473,385 Members | 1,824 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Problem in listing out the items in Combo box

Hi am doing my project using Vb 6.0 with ms-access..
am using combo box to select the item by the user..

if the user selecting the item in the combo box without using mouse.
My problem is,
While they are typing the first letter of the item,automatically the corresponding items which starts by that letter should be displayed under the combo box.similarly for the second ,third letters n so on....so that the user can select the items easily...
Plz let me know the solution soon....
Jul 24 '06 #1
3 2549
Hemant Pathak
92 Expert
Hi
u can API SendMessageString

Private Decleare Function SendMessageString Lib "User32" Alias "SendMessageA" (Byval hwnd as Long,Byval wmsg as Long,ByVal wParam as long,ByVal lParam as String)

const CB_SHOWDROPDOWN=&H14F

'Declear these function above in the form
'Suppouse ur Combo Box Name is Combo1
'Write this Code in Combo Keydown Event

SendMessageString Combo1,CB_SHOWDROPDOWN,-1,Combo1.text




Enjoy............................................. ...........
Jul 24 '06 #2
Hi
u can API SendMessageString

Private Decleare Function SendMessageString Lib "User32" Alias "SendMessageA" (Byval hwnd as Long,Byval wmsg as Long,ByVal wParam as long,ByVal lParam as String)

const CB_SHOWDROPDOWN=&H14F

'Declear these function above in the form
'Suppouse ur Combo Box Name is Combo1
'Write this Code in Combo Keydown Event

SendMessageString Combo1,CB_SHOWDROPDOWN,-1,Combo1.text




Enjoy............................................. ...........


hi
while i am compile, type mismatch error is occuring in the following line.
SendMessageString Combo1,CB_SHOWDROPDOWN,-1,Combo1.text

Get me the solution soon..
Regards
Bremanand.S
Jul 24 '06 #3
Please help me............
Jul 25 '06 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: CGuy | last post by:
URGENT HELP REQUIRED FROM GURUS Hi, I have a custom object that implements ICollection and IListSource. This object has also an enumerator defined for it which implements IEnumerator and...
5
by: will eichert | last post by:
Greetings. I have a problem with a combo box incorrectly displaying blank items when returning to a form from a modal form. It's fine when the main form first comes up, but gets messed up when the...
4
by: John Tyce | last post by:
The problem that I am now having, involves refreshing controls. I have allot of text boxes, several combo boxes and grids. These controls are showing live data from an Oracle database. I have dates...
6
by: Brian Henry | last post by:
Here's an example of the code.. I have two combo boxes on screen that when one's selection is change the other's items will be updated to reflect the change (based on a relation) Private...
2
by: Fred Flintstone | last post by:
This is driving me crazy. I've put together a perfect, easy example of the problem. What I'm doing is creating a custom control, prepopulated with 4 items when dropped on a form: - Create a new...
1
by: Bremanand | last post by:
Hi am doing my project using Vb 6.0 with ms-access.. am using combo box to select the item by the user.. if the user selecting the item in the combo box without using mouse. My problem is,...
1
by: Gian Paolo | last post by:
hi all i'm looking for a way to add 2 items in a combobox in the same line and hide one. i'm working on the code above but it returns me only the last value i entered and i do not know why.... ...
6
by: =?Utf-8?B?amVmZmVyeQ==?= | last post by:
i need help with a combo box and this same code works on my first tab with a combo box. The error or problem i have is this code causes an index out of range error when i run it on my second combo...
2
by: mygirl22 | last post by:
Hi, I used this code to created 2 combo boxes General and Specific...and Only show Specific (Combo B) when Combo A is chosen..... What i need now is to know how to assign specific values to the...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.