Disable keys, like Home and End, in the KeyDown event of the Form

  • Thread starter Thread starter BD
  • Start date Start date
B

BD

Hi,

I have a control derived from BindingSource with a property of type
Form that contain the form that owns my control. I set that property
form.KeyPreview=true. I intercept the keys I want to disable, like
Home and End, and I set the e.Handled=true but that keys are always
executed. I think that overriding the ProcessCmdKey resolve my problem
but I don't want to make a component derived from Form to do only
that. What about other alternative do I have?

[]'s
BD
 
Back
Top