Uwe Keim
Uwe Keim

Reputation: 40736

Windows Forms control that behaves like the ASP.NET Ajax AutoComplete extender?

Successfully using the AJAX Control Toolkit AutoComplete extender, I'm looking for a Windows Forms 2.0 control that behaves similar to it:

AutoComplete extender

Since I want to use the control to enter multiple e-mail receivers, my primary requirement is to have multiple, independent items to auto-complete.

I.e. this cannot be done by the standard auto complete feature of a TextBox control which only supports auto-completing one string.

In other words, I'm looking for something similar than Outlook's e-mail text box (but not as advanced, just the auto-complete part, no underlining required):

Autocomplete in Outlook

Even after searching Google (and Bing) for quite a long time I manage to have no luck in finding such a control.

My question:

Is there some example out there on how to build such a control, or even a finished control to use?

Since the application should be very slim, I do not want to use 3rd party libraries like DevExpress or Telerik or Infragistics.

Update 2014-12-24:

The commercial DevExpress library now has a Token Edit Control that might just be the control I was looking for:

enter image description here

Upvotes: 1

Views: 2268

Answers (1)

Wizetux
Wizetux

Reputation: 756

You might take a look at the IAutoComplete interface. That will let you create a class that you can use instead of the standard auto-complete for an edit box. In that class you would handle what part of the string you are auto-completing on and the source of where the data is coming from.

http://msdn.microsoft.com/en-us/library/bb776292(v=VS.85).aspx

Upvotes: 1

Related Questions