Skip to content

Instantly share code, notes, and snippets.

View carsonwilliamsdev's full-sized avatar

Carson Williams carsonwilliamsdev

  • Four Winds Interactive
View GitHub Profile
public class SuggestComboBox : ComboBox
{
#region fields and properties
private readonly ListBox suggestionListBox = new ListBox { Visible = false, TabStop = false };
private readonly BindingList<string> suggBindingList = new BindingList<string>();
private Expression<Func<ObjectCollection, IEnumerable<string>>> propertySelector;
private Func<ObjectCollection, IEnumerable<string>> propertySelectorCompiled;
private Expression<Func<string, string, bool>> filterRule;