Re: combobox autocomplete - DROPDOWNLIST

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Aaron Smith (thespirit-1-_at_smithcentral.net)
Date: 11/15/04


Date: Mon, 15 Nov 2004 15:32:12 GMT

That would be awesome!

Bernie Yaeger wrote:
> 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$Qv5.11097@newssvr33.news.prodigy.com...
>
>>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" <notmyfirstname@planet.nl> wrote in message
>>>>news:uUxUFTuyEHA.2016@TK2MSFTNGP15.phx.gbl...
>>>>
>>>>
>>>>>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.
>
>
>

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


Relevant Pages

  • Re: My Brain Hurts - Help
    ... "Bernie Yaeger" wrote in message ... > Hi Siv, ... >> da.Fill'pour in the data using the adapter>> ... >> String. ...
    (microsoft.public.dotnet.languages.vb)
  • Re: BJC HLCB thread
    ... The Renegade with Aaron ... Gregg running it. ... Low - The prick with the string and the card tricks. ... Goal - Go to a workshop - fail. ...
    (rec.juggling)
  • Re: Is VB Caca??
    ... Aaron and MP were two different people. ... Robin S. ... Public Function WhichLanguage(specs as string, importance as string, ... is as powerful and the developers can be had for less money... ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Problem with dynamic SQL syntax
    ... Thanks Aaron - that was also the understanding I had about using '. ... > tells the engine that your ' is part of the string, ... > Bob's Bait Shack ...
    (microsoft.public.sqlserver.server)
  • Re: string length
    ... (or inline the temporary int variable). ... Yanick ... Aaron wrote: ... > how can i make sure string a is less than 250 char? ...
    (microsoft.public.dotnet.general)