PC Review


Reply
Thread Tools Rate Thread

combobox autocomplete - DROPDOWNLIST

 
 
Bernie Yaeger
Guest
Posts: n/a
 
      14th Nov 2004
Everyone misses the point on this - what we need is a combobox autocomplete
that is a dropdownlist only. When in dropdown mode, you can enter text -
making that autocomplete is trivial. But when you look at combobox controls
from years ago, they would autocomplete in dropdownlist mode. And if you
look at intellisense, this is exactly what happens, so obviously the .net
framework can do it.

Any help would be much appreciated.

Bernie Yaeger


 
Reply With Quote
 
 
 
 
Ken Tucker [MVP]
Guest
Posts: n/a
 
      14th Nov 2004
Hi,

http://www.thecodeproject.com/vb/net...e_combobox.asp

Ken
---------------------
"Bernie Yaeger" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
Everyone misses the point on this - what we need is a combobox autocomplete
that is a dropdownlist only. When in dropdown mode, you can enter text -
making that autocomplete is trivial. But when you look at combobox controls
from years ago, they would autocomplete in dropdownlist mode. And if you
look at intellisense, this is exactly what happens, so obviously the .net
framework can do it.

Any help would be much appreciated.

Bernie Yaeger



 
Reply With Quote
 
Bernie Yaeger
Guest
Posts: n/a
 
      14th Nov 2004
Hi Ken,

You are easily one of the most knowledgeable and helpful people on this ng.
So it is that much more disappointing that you didn't read what I said -
THIS DOESN'T WORK WITH A DROPDOWNLIST COMBOBOX!

Bernie

"Ken Tucker [MVP]" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi,
>
> http://www.thecodeproject.com/vb/net...e_combobox.asp
>
> Ken
> ---------------------
> "Bernie Yaeger" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
> Everyone misses the point on this - what we need is a combobox
> autocomplete
> that is a dropdownlist only. When in dropdown mode, you can enter text -
> making that autocomplete is trivial. But when you look at combobox
> controls
> from years ago, they would autocomplete in dropdownlist mode. And if you
> look at intellisense, this is exactly what happens, so obviously the .net
> framework can do it.
>
> Any help would be much appreciated.
>
> Bernie Yaeger
>
>
>



 
Reply With Quote
 
Cor Ligthert
Guest
Posts: n/a
 
      15th Nov 2004
Bernie,

> You are easily one of the most knowledgeable and helpful people on this
> ng. So it is that much more disappointing that you didn't read what I
> said - THIS DOESN'T WORK WITH A DROPDOWNLIST COMBOBOX!


If I understand you well, why than not make it your own by setting it in
combobox mode and doing a findstringexact when the user has selected an
item.

When it is not already in the combobox you can just ignore it, or even
ignore it with a message.

Maybe this helps, just a try?

Cor


 
Reply With Quote
 
Bernie Yaeger
Guest
Posts: n/a
 
      15th Nov 2004
Hi Cor,

Findstringexact won't solve the problem.

Let's say the combobox contains

twist
soccer player
coral
comment
complete

What the user wants is to enter 'c' and get 'comment'; enter 'o' and stay on
'comment'; enter 'm' and stay on 'comment'; enter 'p' and go to 'complete'.

This is the way dropdownlist comboboxes used to work - for at least the last
10 years before .net.

Thanks for any help.

Bernie

"Cor Ligthert" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Bernie,
>
>> You are easily one of the most knowledgeable and helpful people on this
>> ng. So it is that much more disappointing that you didn't read what I
>> said - THIS DOESN'T WORK WITH A DROPDOWNLIST COMBOBOX!

>
> If I understand you well, why than not make it your own by setting it in
> combobox mode and doing a findstringexact when the user has selected an
> item.
>
> When it is not already in the combobox you can just ignore it, or even
> ignore it with a message.
>
> Maybe this helps, just a try?
>
> Cor
>
>



 
Reply With Quote
 
Cor Ligthert
Guest
Posts: n/a
 
      15th Nov 2004
Bernie,

That is what in my opinion that autocomplete combobox would do what Ken has
showed you.

The difference between a combobox and a listbox is that you may enter and
use text in a combobox that is not in the listcontrol.

Therefore I came with that idea about checking first with findstringexact

Cor

>
> Findstringexact won't solve the problem.
>
> Let's say the combobox contains
>
> twist
> soccer player
> coral
> comment
> complete
>
> What the user wants is to enter 'c' and get 'comment'; enter 'o' and stay
> on 'comment'; enter 'm' and stay on 'comment'; enter 'p' and go to
> 'complete'.
>
> This is the way dropdownlist comboboxes used to work - for at least the
> last 10 years before .net.
>
> Thanks for any help.
>
> Bernie
>
> "Cor Ligthert" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
>> Bernie,
>>
>>> You are easily one of the most knowledgeable and helpful people on this
>>> ng. So it is that much more disappointing that you didn't read what I
>>> said - THIS DOESN'T WORK WITH A DROPDOWNLIST COMBOBOX!

>>
>> If I understand you well, why than not make it your own by setting it in
>> combobox mode and doing a findstringexact when the user has selected an
>> item.
>>
>> When it is not already in the combobox you can just ignore it, or even
>> ignore it with a message.
>>
>> Maybe this helps, just a try?
>>
>> Cor
>>
>>

>
>



 
Reply With Quote
 
Bernie Yaeger
Guest
Posts: n/a
 
      15th Nov 2004
Hi Cor,

There are lots of differences between a listbox and a combobox. But the
point is, in a combobox in dropdowlist mode, you cannot enter text - every
keystroke simply searches for the item that matches. By default, when in
dropdownlist mode, it simply finds the first item with the same initial
letter:

common
olive
call
complete

Entering a 'c' will find 'call', because it is first, alphabetically; then
entering an 'o' will find 'olive', etc. What I want - and what we had for
years - is for the user to enter 'c' and get call, but then enter 'o' and
get 'common', not 'olive'.

Bernie

"Cor Ligthert" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Bernie,
>
> That is what in my opinion that autocomplete combobox would do what Ken
> has showed you.
>
> The difference between a combobox and a listbox is that you may enter and
> use text in a combobox that is not in the listcontrol.
>
> Therefore I came with that idea about checking first with findstringexact
>
> Cor
>
>>
>> Findstringexact won't solve the problem.
>>
>> Let's say the combobox contains
>>
>> twist
>> soccer player
>> coral
>> comment
>> complete
>>
>> What the user wants is to enter 'c' and get 'comment'; enter 'o' and stay
>> on 'comment'; enter 'm' and stay on 'comment'; enter 'p' and go to
>> 'complete'.
>>
>> This is the way dropdownlist comboboxes used to work - for at least the
>> last 10 years before .net.
>>
>> Thanks for any help.
>>
>> Bernie
>>
>> "Cor Ligthert" <(E-Mail Removed)> wrote in message
>> news:(E-Mail Removed)...
>>> Bernie,
>>>
>>>> You are easily one of the most knowledgeable and helpful people on this
>>>> ng. So it is that much more disappointing that you didn't read what I
>>>> said - THIS DOESN'T WORK WITH A DROPDOWNLIST COMBOBOX!
>>>
>>> If I understand you well, why than not make it your own by setting it in
>>> combobox mode and doing a findstringexact when the user has selected an
>>> item.
>>>
>>> When it is not already in the combobox you can just ignore it, or even
>>> ignore it with a message.
>>>
>>> Maybe this helps, just a try?
>>>
>>> Cor
>>>
>>>

>>
>>

>
>



 
Reply With Quote
 
Cor Ligthert
Guest
Posts: n/a
 
      15th Nov 2004
Bernie,

I did write the wrong word, should have been combobox in dropdowlist mode
instead of listbox, however again, does that sample Ken showed you not do
that?

And than again, with the idea I added to that.

Cor

"Bernie Yaeger" <(E-Mail Removed)>
> Hi Cor,
>
> There are lots of differences between a listbox and a combobox. But the
> point is, in a combobox in dropdowlist mode, you cannot enter text - every
> keystroke simply searches for the item that matches. By default, when in
> dropdownlist mode, it simply finds the first item with the same initial
> letter:
>
> common
> olive
> call
> complete
>
> Entering a 'c' will find 'call', because it is first, alphabetically; then
> entering an 'o' will find 'olive', etc. What I want - and what we had for
> years - is for the user to enter 'c' and get call, but then enter 'o' and
> get 'common', not 'olive'.
>
> Bernie
>
> "Cor Ligthert" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
>> Bernie,
>>
>> That is what in my opinion that autocomplete combobox would do what Ken
>> has showed you.
>>
>> The difference between a combobox and a listbox is that you may enter and
>> use text in a combobox that is not in the listcontrol.
>>
>> Therefore I came with that idea about checking first with findstringexact
>>
>> Cor
>>
>>>
>>> Findstringexact won't solve the problem.
>>>
>>> Let's say the combobox contains
>>>
>>> twist
>>> soccer player
>>> coral
>>> comment
>>> complete
>>>
>>> What the user wants is to enter 'c' and get 'comment'; enter 'o' and
>>> stay on 'comment'; enter 'm' and stay on 'comment'; enter 'p' and go to
>>> 'complete'.
>>>
>>> This is the way dropdownlist comboboxes used to work - for at least the
>>> last 10 years before .net.
>>>
>>> Thanks for any help.
>>>
>>> Bernie
>>>
>>> "Cor Ligthert" <(E-Mail Removed)> wrote in message
>>> news:(E-Mail Removed)...
>>>> Bernie,
>>>>
>>>>> You are easily one of the most knowledgeable and helpful people on
>>>>> this ng. So it is that much more disappointing that you didn't read
>>>>> what I said - THIS DOESN'T WORK WITH A DROPDOWNLIST COMBOBOX!
>>>>
>>>> If I understand you well, why than not make it your own by setting it
>>>> in combobox mode and doing a findstringexact when the user has selected
>>>> an item.
>>>>
>>>> When it is not already in the combobox you can just ignore it, or even
>>>> ignore it with a message.
>>>>
>>>> Maybe this helps, just a try?
>>>>
>>>> Cor
>>>>
>>>>
>>>
>>>

>>
>>

>
>



 
Reply With Quote
 
Aaron Smith
Guest
Posts: n/a
 
      15th Nov 2004
Bernie,

I know exactly what you want and why you want it, and no the example he
gave is not it. However, if you subclass it, and then grab the keydown
event and build your own string while the control has focus, you could
probably do some sort of manual find on it to get the one they want. I
will need this as well once I get more of my current project completed...

Aaron

Cor Ligthert wrote:
> Bernie,
>
> That is what in my opinion that autocomplete combobox would do what Ken has
> showed you.
>
> The difference between a combobox and a listbox is that you may enter and
> use text in a combobox that is not in the listcontrol.
>
> Therefore I came with that idea about checking first with findstringexact
>
> Cor
>
>
>>Findstringexact won't solve the problem.
>>
>>Let's say the combobox contains
>>
>>twist
>>soccer player
>>coral
>>comment
>>complete
>>
>>What the user wants is to enter 'c' and get 'comment'; enter 'o' and stay
>>on 'comment'; enter 'm' and stay on 'comment'; enter 'p' and go to
>>'complete'.
>>
>>This is the way dropdownlist comboboxes used to work - for at least the
>>last 10 years before .net.
>>
>>Thanks for any help.
>>
>>Bernie
>>
>>"Cor Ligthert" <(E-Mail Removed)> wrote in message
>>news:(E-Mail Removed)...
>>
>>>Bernie,
>>>
>>>
>>>>You are easily one of the most knowledgeable and helpful people on this
>>>>ng. So it is that much more disappointing that you didn't read what I
>>>>said - THIS DOESN'T WORK WITH A DROPDOWNLIST COMBOBOX!
>>>
>>>If I understand you well, why than not make it your own by setting it in
>>>combobox mode and doing a findstringexact when the user has selected an
>>>item.
>>>
>>>When it is not already in the combobox you can just ignore it, or even
>>>ignore it with a message.
>>>
>>>Maybe this helps, just a try?
>>>
>>>Cor
>>>
>>>

>>
>>

>
>



--
---
Aaron Smith
Remove -1- to E-Mail me. Spam Sucks.
 
Reply With Quote
 
Bernie Yaeger
Guest
Posts: n/a
 
      15th Nov 2004
Hi Aaron,

Tx for restoring my sanity!

Actually, I have already played around with the idea of using a global
string, exiting in the keyup event when tab, enter, arrows, etc and the
findstring with the global string. I then added a timer so that the global
string is cleared after a 2 second interval (so if you enter 'com' and wait
too long, 'p' with start again and find, say, 'paper'), because if you don't
clear the string the user can't make a second selection.

I may try to develop this into a custom control. If I do, I will email you
and let you know what I've done.

Bernie

"Aaron Smith" <thespirit-1-@smithcentral.net> wrote in message
news:O%1md.28979$(E-Mail Removed)...
> Bernie,
>
> I know exactly what you want and why you want it, and no the example he
> gave is not it. However, if you subclass it, and then grab the keydown
> event and build your own string while the control has focus, you could
> probably do some sort of manual find on it to get the one they want. I
> will need this as well once I get more of my current project completed...
>
> Aaron
>
> Cor Ligthert wrote:
>> Bernie,
>>
>> That is what in my opinion that autocomplete combobox would do what Ken
>> has showed you.
>>
>> The difference between a combobox and a listbox is that you may enter and
>> use text in a combobox that is not in the listcontrol.
>>
>> Therefore I came with that idea about checking first with findstringexact
>>
>> Cor
>>
>>
>>>Findstringexact won't solve the problem.
>>>
>>>Let's say the combobox contains
>>>
>>>twist
>>>soccer player
>>>coral
>>>comment
>>>complete
>>>
>>>What the user wants is to enter 'c' and get 'comment'; enter 'o' and stay
>>>on 'comment'; enter 'm' and stay on 'comment'; enter 'p' and go to
>>>'complete'.
>>>
>>>This is the way dropdownlist comboboxes used to work - for at least the
>>>last 10 years before .net.
>>>
>>>Thanks for any help.
>>>
>>>Bernie
>>>
>>>"Cor Ligthert" <(E-Mail Removed)> wrote in message
>>>news:(E-Mail Removed)...
>>>
>>>>Bernie,
>>>>
>>>>
>>>>>You are easily one of the most knowledgeable and helpful people on this
>>>>>ng. So it is that much more disappointing that you didn't read what I
>>>>>said - THIS DOESN'T WORK WITH A DROPDOWNLIST COMBOBOX!
>>>>
>>>>If I understand you well, why than not make it your own by setting it in
>>>>combobox mode and doing a findstringexact when the user has selected an
>>>>item.
>>>>
>>>>When it is not already in the combobox you can just ignore it, or even
>>>>ignore it with a message.
>>>>
>>>>Maybe this helps, just a try?
>>>>
>>>>Cor
>>>>
>>>>
>>>
>>>

>>
>>

>
>
> --
> ---
> Aaron Smith
> Remove -1- to E-Mail me. Spam Sucks.



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Combobox with autocomplete Dom Microsoft C# .NET 5 4th Feb 2009 03:00 AM
Combobox autocomplete =?Utf-8?B?RGF2aWQgVGlsbWFu?= Microsoft Dot NET Framework Forms 2 16th Aug 2006 09:32 PM
ComboBox Behavior in DropDownList C Glenn Microsoft C# .NET 3 5th Oct 2005 06:33 PM
acc 03 combobox autocomplete Marco Microsoft Access 3 30th Jun 2005 11:03 AM
Autocomplete combobox with dropdownstyle set to dropdownlist =?Utf-8?B?dmVudWdvcGFsLk0=?= Microsoft Dot NET Framework Forms 3 14th Oct 2004 02:22 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:40 AM.