This is an extension for: How to force a user to take a suggested entry into a ComboBox?
How can a solution using events (like Leave and SelectedIndexChanged) be implemented in a generalized way? For example: I have implemented those methods for many comboboxes with a common behavior; the code is the same for Leave event on all Combos, so I think I can subclass or use a partial class but I do not know how to do it in an architecturally proper way or if I could use a new subclassed component in VSTS2010 GUI editor.
Try to think this as creating a customized combo that has to enforce the user to write a value already existing in its related DataSource
Create a custom control that inherits from
ComboBox(instead of inheriting fromUserControl) and put all your logic in there.