Skip to content

Instantly share code, notes, and snippets.

View lionpeloux's full-sized avatar
🎯
Focusing

Lionel du Peloux lionpeloux

🎯
Focusing
View GitHub Profile
@lionpeloux
lionpeloux / SuggestComboBox.cs
Last active June 20, 2023 19:51 — forked from carsonwilliamsdev/SuggestComboBox.cs
C# SuggestCombobox
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;