Hello,
in my MDI application I add child forms to the main form like this:
FormWaveform formWaveform = new FormWaveform(...);formWaveform.MdiParent = this;formWaveform.Show();
If the user presses a key, I want the active child form to react and I implemented the corresponding methods as follows in the child's form class:
void FormWaveform_KeyDown(object sender, KeyEventArgs e) {....}
and
protected override bool ProcessCmdKey(ref Message msg, Keys keyData) {...}
My problem is, that only the child form, which was first added, processes the messages. All other forms don't.
In the main form, I added an event handler which handles the changing of the active child; here I tried to change the properties of the active child and the passive children: no success.
In every case, only the first added child processes the key input - even if this form is not the active MDI child. All other MDI children can not process any message.
Can anyone give me a hint?
Thanks in advance,
Markus
View Complete Post