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
192 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 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

ScreenConnect 6.0 Free Trial

At ScreenConnect, partner feedback doesn't fall on deaf ears. We collected partner suggestions off of their virtual wish list and transformed them into one game-changing release: ScreenConnect 6.0. Explore all of the extras and enhancements for yourself!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Where can I ask about my ASP.NET MVC project? 6 36
Keyboard 2 34
Printing 1 51
jQuery - following an example but can I save data server side? 20 50
This article describes a simple method to resize a control at runtime.  It includes ready-to-use source code and a complete sample demonstration application.  We'll also talk about C# Extension Methods. Introduction In one of my applications…
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…
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

810 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