Search code examples
c#.netautocompletecustom-controlsboo

How can I create a control like the one from Eclipse's autocomplete?


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!


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