+2  A: 

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

eed3si9n
yes, but how do I make it pop-out of the Window/Form/Dialog?
Geo
+1  A: 

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

zaladane
I haven't thought about this approach. Very interesting. What about creating an undecorated window. By undecorated I mean without the status bar, no minimize button, no maximize button, no close button. Can this be done?
Geo
That could actually work too i guess. Your form has a property call formBorderStyle. just set it to 'none'.
zaladane
How have you handled the case when the text is at the bottom of the page? Did you display your list above it?
Geo
Yep. baiscally i check the size of the main window first and depending on how many items i think i am returning,i calulate the size of the listbox and display it either at the top or the bottom of the textbox. pretty much like the dropdownlist does it.I have another tip if you would like to do it dropdownlist style: if you can debug microsoft code when a dropdownlist item is clicked, use Reflector.Net to take a look at what the do to show the dropdown result list
zaladane