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
190 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 69

Accepted Solution

by:
Éric Moreau earned 500 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

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

This article introduced a TextBox that supports transparent background.   Introduction TextBox is the most widely used control component in GUI design. Most GUI controls do not support transparent background and more or less do not have the…
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…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

758 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now