Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

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

Posted on 2006-10-19
3
Medium Priority
?
202 Views
Last Modified: 2010-05-18
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.
0
Comment
Question by:ICPooreman
  • 2
3 Comments
 
LVL 70

Accepted Solution

by:
Éric Moreau earned 2000 total points
ID: 17766316
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!
0
 

Author Comment

by:ICPooreman
ID: 17766479
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?
0
 

Author Comment

by:ICPooreman
ID: 17766529
nevermind I found it thanks again.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
Hello there! As a developer I have modified and refactored the unit tests which was written by fellow developers in the past. On the course, I have gone through various misconceptions and technical challenges when it comes to implementation. I would…
Integration Management Part 2
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…

773 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question