Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Force Ctrl+F1 to cycle between windows
Message
From
25/06/2008 14:01:43
 
 
To
All
General information
Forum:
ASP.NET
Category:
Forms
Title:
Force Ctrl+F1 to cycle between windows
Environment versions
Environment:
C# 2.0
Miscellaneous
Thread ID:
01326709
Message ID:
01326709
Views:
57
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
Next
Reply
Map
View

Click here to load this message in the networking platform