Key press only fire with MDI form,not with MS form

238 Views Asked by At

I have an MDI form with many mdi child forms. To catch key press event on those form, I used ProcessCMD key. But there is a problem. If I create a new form that doesn't belong to the parent form(parent form is MDI form and new child form is a normal form). I couldn't catch key press event on new child form. I don't know why this happened.

My app has many forms so that I can't create a class and then fix each form by inherriting a class to store which form is open.

Please help me to solve this problem. Thanks a lot

0

There are 0 best solutions below