I have a combobox control and it has more than 3 values...I want to have the text filtering feature for this control...If the values are Yes, No, Not Selected and when I press Y on my keyboard it should give me Yes. Please responsed to me ASAP..Thanks in advance,
Text filtering issue..ASAP
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.


Afzaal Ahmad ZeeshanRank #60 · 27.6K reputationPosted Sep 11, 2015, 7:24 PM EDT
control.KeyPress += (sender, e) => { // Get the key, if it is Y // then Filter the result. }- Handling keyboard events in C# (add the framework being used, WPF or WinForms etc.)
- Filter the ComboBoxItems based on a value.
These would help you in finding a good solution. The KeyPress event can be learnt about from MSDN itself.