Click here to Skip to main content
15,949,741 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
Am working on a project that has a text box and a list box. The list box has a list of all of the States.

What needs to happen is when the State name is typed into the text box, the State is highlighted in the list box.

Also, if "A" it selects "Alabama", if "Alas" then "Alaska" is selected, etc...

I know I can Use Sendmessage Api but i want to select in a list by 'like' Statement not 'begin with'!!!

Should also be able to highlight the text in the list box and have it appear in the text box.



the truth is that i want to have filter recordset in client side(In Application) not in server side (Database)

I hope could say what i mean
Thanks,
Posted

1 solution

I suggest that you study up on the textchange event. I think that is what it was called in vb6, but I may be mistaken. I know it does exist in some form or another and that you will need to do some processing in there filter/select your list box value(s).
 
Share this answer
 
Comments
SepantaNima 24-Jan-11 16:14pm    
thanks marcus,

but u know, my application has a lots of data entry in a moment with 40 user in a same time and i need to have refreshed data in list on eachone of the clients so i must put most of the process on the client isn't it????
this is the matter my friend.
and i dont know how to ask this clearly,

Thanks,
fjdiewornncalwe 24-Jan-11 16:22pm    
It appears you have tagged your question incorrectly. It looks like you are writing a web app in which case I'll ask whether you're using VB.Net with ASP.Net, or are you actually writing a vb6 application. I'm confused.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900