Question

I'd like to create an autocomplete control using Boo/C#. Here's a screenshot from the internet if you don't know how it looks like :

alt text http://archive.eclipse.org/eclipse/downloads/drops/S-3.5M7-200904302300/images/p2autocomplete.png

I'm basically thinking of a undecorated window/dialog ( which I'm not sure how would I implement ), or a control that can be displayed on it's own ( a ListBox of some sort ).

How could I implement such a control?

I'm very interested in the popping-out part of the control!

Was it helpful?

Solution

I did something like that a while back and did use a listbox to display the result. All i needed to do was to monitor the KeyUp event to do the fetching of the data and display the listbox. I added the listbox as a hidden control to the form and would show it when appropriate after setting its position

OTHER TIPS

It seems like TextBox already does auto completion. See TextBox.AutoCompleteSource Property.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top