G
Guest
I have a form with a delegate set up for the KeyDown event. I have set KeyPreview=true and the delegate is called correctly whenever I press a key, except if the active control on that form is a DropDown ComboBox.
If I change that ComboBox to be DropDownStyle=ComboBoxStyle.DropDowList the delegate fires when I press a key in that control, as I would expect. The problem is I don't want to restrict the ComboBox to a fixed list of options. The user needs to be able to select, or type their own option.
I have reproduced this in an extremely trivial app - one form, two comboboxes, one delegate, and no databinding etc. Does anyone know whether I could be doing something else that has created this problem, or whether this is a known bug? I have searched but can't find a post that seems relevant.
Thanks,
Scott.
If I change that ComboBox to be DropDownStyle=ComboBoxStyle.DropDowList the delegate fires when I press a key in that control, as I would expect. The problem is I don't want to restrict the ComboBox to a fixed list of options. The user needs to be able to select, or type their own option.
I have reproduced this in an extremely trivial app - one form, two comboboxes, one delegate, and no databinding etc. Does anyone know whether I could be doing something else that has created this problem, or whether this is a known bug? I have searched but can't find a post that seems relevant.
Thanks,
Scott.