views:

18

answers:

0

Hi Guys,

I wonder if any one has experienced the following issue and can give me some pointers.

We have an MID form with Cut, Copy, Paste, and Delete child menu items of a menuItem called Edit. Each of these child menu items has the ShortcutKeys property set with CTRL+X, CTRL+C, CTL+V, and Del, respectively. The short cut key and combinations will fire the menu item Click event handler as expected.

However all the time these ShortcutKeys properties are assigned, my user control with a textbox control will never receive a KeyDown event for the Delete key, and therefore does not delete text when the delete key is pressed.

It appears that the MDIForm Delete menu item click event seems to eat the KeyDown event so it is never sent down to the user control or TextBox.

Is there a way for the TextBox in the user control to receive this event? Has anyone else experienced this behaviour? Can any one help?

Thanks and kind regards,

Duane.