Access Keys with MDI

I am having some trouble with access keys and MDI. If I have a child form open with an access key "S" for a Save button and then I open another child form that does not have an access key for "S" but I press "S" anyway it will activate the Save button on the first child form, even though the second child form is active!

Maybe this is the way it is supposed to work in MDI, but I had hoped that MDI forms would function like regular forms where they wouldn't trigger each others access keys.

Am I doing something wrong or is there a workaround for this?

Please HELP!

[605 byte] By [codefund.com] at [2007-12-16]
# 1
Yikes. I think you have a bug here. Certainly, VB6 didn't work this way -- just tried it. Also just reproduced the problem you're seeing in VS.NET.

I'm really hoping someone out there knows of some magical property that turns off this behavior, 'cause I can't find the solution. In addition, I tried some workarounds using the KeyDown event (it would be ugly if it worked at all) and I'm not getting it right. So, I'm looking forward to an answer on this one, too!

codefund.com at 2007-9-8 > top of Msdn Tech,Windows Forms,Windows Forms General...