E
Eric Guthmann
I'm having an unusual problem in an MDI application I'm working on. It
seems that when one MDI child is active, pressing keyboard accelerator keys
will sometimes activate buttons that are not on the active MDI child, but
rather on a non-active MDI child.
For example, if I have two MDI child forms open:
Form1
Button1: &View
Form2
TextBox1
Button2: &View
TextBox2
If Form2 is active and I'm in TextBox1, pressing Alt+V will click Button2.
If Form2 is active and I'm in TextBox2, pressing Alt+V will click Button1 on
the non-active Form1.
This seems like a serious bug in the .NET Framework 1.1. Has anyone else
seen this behavior? Is there a recommended workaround?
I also see a similar behavior when I'm using the TabControl:
Form3:
TabControl
TabPage1
Button1: &View
TabPage2
TextBox1
Button2: &View
TextBox2
If TabPage2 is active and I'm in TextBox1, pressing Alt+V will click
Button2.
If TabPage2 is active and I'm in TextBox2, pressing Alt+V will click Button1
on the non-active TabPage1.
It appears that the framework is searching for keyboard accelerators across
MDI forms and non-visible TabPage boundaries.
Any help is much appreciated!
seems that when one MDI child is active, pressing keyboard accelerator keys
will sometimes activate buttons that are not on the active MDI child, but
rather on a non-active MDI child.
For example, if I have two MDI child forms open:
Form1
Button1: &View
Form2
TextBox1
Button2: &View
TextBox2
If Form2 is active and I'm in TextBox1, pressing Alt+V will click Button2.
If Form2 is active and I'm in TextBox2, pressing Alt+V will click Button1 on
the non-active Form1.
This seems like a serious bug in the .NET Framework 1.1. Has anyone else
seen this behavior? Is there a recommended workaround?
I also see a similar behavior when I'm using the TabControl:
Form3:
TabControl
TabPage1
Button1: &View
TabPage2
TextBox1
Button2: &View
TextBox2
If TabPage2 is active and I'm in TextBox1, pressing Alt+V will click
Button2.
If TabPage2 is active and I'm in TextBox2, pressing Alt+V will click Button1
on the non-active TabPage1.
It appears that the framework is searching for keyboard accelerators across
MDI forms and non-visible TabPage boundaries.
Any help is much appreciated!