For Programmers: Free Programming Magazines  


Home > Archive > Visual Basic Syntax > April 2005 > Drop down combo box









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Drop down combo box
Ricky

2005-03-31, 8:59 pm

Hi everybody,

I have a combo box that gets populated with CUSTOMER NAMES once the
application is run. What I want the user to do is, while they are typing a
certain user name, the combo box automatically scrolls to the typed letter.
For example: if user types the letter J, the combobox automatically goes to
the first name on the list that starts with J. After that user types O, it
should show all names with JO and so on. Is that possible?

Thanks
Jeff Johnson [MVP: VB]

2005-04-01, 4:01 am


"Ricky" <Ricky@discussions.microsoft.com> wrote in message
news:42DA43F6-6722-4824-A0AE-6E3C6BCDD31A@microsoft.com...

> I have a combo box that gets populated with CUSTOMER NAMES once the
> application is run. What I want the user to do is, while they are typing a
> certain user name, the combo box automatically scrolls to the typed
> letter.
> For example: if user types the letter J, the combobox automatically goes
> to
> the first name on the list that starts with J. After that user types O, it
> should show all names with JO and so on. Is that possible?


Set the Sorted property to True and the OS will handle it. If you MUST have
the list unsorted, you've got a LOT more work ahead of you.


anon

2005-04-06, 12:46 pm

Hi there,
You need to set the appropriate 'style' property. This link
explains the differences between them :

http://techrepublic.com.com/5100-6228_11-5376690.html

"Ricky" wrote:

> Hi everybody,
>
> I have a combo box that gets populated with CUSTOMER NAMES once the
> application is run. What I want the user to do is, while they are typing a
> certain user name, the combo box automatically scrolls to the typed letter.
> For example: if user types the letter J, the combobox automatically goes to
> the first name on the list that starts with J. After that user types O, it
> should show all names with JO and so on. Is that possible?
>
> Thanks

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com