combo box auto complete



Hello..

I am writing a customer management/inventory app. I am currently working on the order entry screen, and was wondering what the best way to proceed on this is:

I want to have the customer last name field be a combo box, such that when the user begins typing in it, it will re-populate itself using only the entries that match the typing. For example: you have these names in your customer list:

Smith
Smithson
Smithers
Smyth
Smitty

The user types 'sm' and there's no change, they type 'i', and 'smyth' disappears, they type 'smith' and smitty disappears also.

Basically the same way most web-browsers auto complete the address field. (Opera 5 for linux, or IE and NS on Windows), except once a user tabs away from this field, it will populate the rest of the form if they selected an already existing entry.

Any advice? Has it already been done somewhere? What events should I be listening for?

Thanks...


-HaB



_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]