When a Form is an MDI Child, it consumes some keyboard events i dont want consuming..
I have found the problem with my textboxes not doing Copy/Paste/Cut/SelectAll from the keyboard shortcuts Ctrl+C, Ctrl+V etc
When the textbox is placed on an MDI Child form, the form seems to do something to prevent the event reaching the control, meaning that while copy and paste from kayboard shortcuts work on any control not on an MDI child, they dont work when the form is MDI
How do i investigate and cancel out or disable this behaviour? Not being able to cut/paste in textboxes is very annoying! :)
Matt
Re: When a Form is an MDI Child, it consumes some keyboard events i dont want consumi
Unable to reproduce. C#, 2005
I'm able to create a MDI, with textboxes, then create children, with textboxes.
cut/paste/copy all work fine.
Is there something else you have running in the background to capture and handle keyboard strokes?
Re: When a Form is an MDI Child, it consumes some keyboard events i dont want consumi
This is not the normal behivor. There has to be something in your program that's eating the key events when you press them. You'll have to search your program to figure out where they are going, or if its small you can attach it and maybe someone else can find the error.
Check the KeyPreview property on your MDI Child control. It should be set to FALSE.