3
Answers

combobox keypress reject all keys

alec

alec

12y
2.6k
1
I have a combobox and I want to use the keypress event (or keydown if I'm doing it wrong) and I'm using this code:

private void CbQuantitySoldSD_KeyPress(object sender, KeyPressEventArgs e)
 {
            e.Handled = false;
 }

to make it so that when you try and type nothing happens, but when I type into the combobox it still appears in the box. Any ideas?
Answers (3)