MDI WinForms 2 application.
I need that Ctrl+F1 cycles through windows like in VFP.
I overrided MDI child form OnKeypress method but Ctrl+F1 press is ignored.
How to force Ctrl+F1 to cycle between windows ?
Andrus.
protected override bool ProcessCmdKey(ref Message msg, Keys keyData)
{
switch (keyData)
{
case Keys.Control | Keys.Tab:
// ... custom processing occurs hear.
return true;
case Keys.Control | Keys.F1:
keyData = Keys.Control | Keys.Tab ;
break;
}
return base.ProcessCmdKey(ref msg, keyData);
}
Andrus