tags:

views:

85

answers:

3

In Windows XP if you click Start, Run (or Windows-key + R) you get a little dialog for running things directly. If you start typing, a resizable scroll-list pops up underneath the edit-box.

I want something similar, so when a user is typing in a name to an edit-box, a list will suddenly appear if suggestions can be made. But I don't know if I need to write it all myself, or can use some existing controls/code from somewhere.

A: 

You'll have to create it yourself, IMHO. However if you google 'autosuggest textbox', you should find some examples on how to do it.

The examples might not be in in MFC though, but I'm sure they can help you along.

Tony
Thanks for the correct term!
John
I think the term is "autocomplete".
Vilx-
I don't think so. Autocomplete means the suggestion is shown in the edit-box, autosuggest means a list of multiple suggestions is shown. But I guess the terms are interchangeable in real life.
John
A: 

This one is a good start:

Rob
It's pretty good, but can you force the drop-down to automatically show when there are multiple suggestions? If I type "John" there could be 10 possible suggestions, and I'd like the drop-down to appear and show them.
John
A: 

I'm currently looking at this one: http://www.codeproject.com/KB/combobox/akautocomplete.aspx Will try to remember to post my findings.

John