Intercepting keystrokes on an MDI form

Do you know if there is any way that I can intercept keystrokes on an MDI form?
I can do this with a 'standard' from by setting the KeyPreview Property to True and trapping the keystroke with the KeyPress Event.

Thanks in advance,
Who is Participating?
FoyalConnect With a Mentor Commented:

Private Sub MDIForm_Load
    Dim NewForm As New Form1
End Sub

In Form1 set .KeyPreview to True and write your key trapping code. This way the MDIForm.ActiveForm should get the focus.

I hope you would take this "D" grade and stick it right up your ass.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.