?
Solved

TextBox autocomplete list open on click

Posted on 2011-10-07
2
Medium Priority
?
1,429 Views
Last Modified: 2012-05-12
Hello,

I am using Windows Forms. I have a TextBox, with autocomplete enabled. I want to open autocomplete list programmatically - let's say, with a click on a TextBox.
Default behaviour is that autocomplete list opens on some text entered in a TextBox - I need to open it programmatically.

How to do this?

Greetings, Frenky
0
Comment
Question by:AntonioRodrigo
2 Comments
 
LVL 83

Accepted Solution

by:
CodeCruiser earned 1000 total points
ID: 36930836
0
 
LVL 14

Assisted Solution

by:nishant joshi
nishant joshi earned 1000 total points
ID: 36968087
check properties of textbox
System.Windows.Forms.AutoCompleteStringCollection st=new System.Windows.Forms.AutoCompleteStringCollection();
            st.Add("hdjjdfd");
            st.Add("sdjsjdksdks");
            textBox1.AutoCompleteCustomSource = st;

Open in new window

untitled.bmp
0

Featured Post

Fill in the form and get your FREE NFR key NOW!

Veeam is happy to provide a FREE NFR server license to certified engineers, trainers, and bloggers.  It allows for the non‑production use of Veeam Agent for Microsoft Windows. This license is valid for five workstations and two servers.

Question has a verified solution.

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

This article is for Object-Oriented Programming (OOP) beginners. An Interface contains declarations of events, indexers, methods and/or properties. Any class which implements the Interface should provide the concrete implementation for each Inter…
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …
Look below the covers at a subform control , and the form that is inside it. Explore properties and see how easy it is to aggregate, get statistics, and synchronize results for your data. A Microsoft Access subform is used to show relevant calcul…
Suggested Courses

807 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