How do I create a text box where options are given as typing like address bar in a browser

ICPooreman
ICPooreman used Ask the Experts™
on
I want to create a text box in C# that performs similar to the address bar in a browser.

so in a browser I'd start typing

www.exp
and below it would be listed
www.experts-exchange.com
www.exponents.com
etc..

I have an array of strings and I'd like to get that effect.  How do I create that.
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Senior .Net Consultant
Top Expert 2016
Commented:
Hi ICPooreman,

Which version of C#? 2003 or 2005?

In 2005, you have the autocomplete features on the TextBox object that allows you to do that. See an article I wrote in June 2006 from http://emoreau.s2i.com/

Cheers!

Author

Commented:
Thanks that worked!!  

One more thing though I want to generate the autoCompleteCustomSource values from an array of strings I'm going to be reading from a db/registry is there an onload feature or something so that I can read in the values when the form is opened or a way to get those values into the field?

Author

Commented:
nevermind I found it thanks again.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial