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

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top