471,348 Members | 1,195 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,348 software developers and data experts.

Force Ctrl+F1 to behave like Ctrl+Tab

MDI WinForms 2 application.
I need that Ctrl+F1 cycles through windows like Ctrl+Tab and Ctrl+Tab is
I overrided MDI child form OnKeypress method but Ctrl+F1 press is ignored.
For unknown reason base.ProcessCmdKey calls method itself.

How to fix ?


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 ;
return base.ProcessCmdKey(ref msg, keyData);

Jun 27 '08 #1
0 1199

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Kaki | last post: by
3 posts views Thread by Glen Hong | last post: by
4 posts views Thread by Oenone | last post: by
4 posts views Thread by Nathan M | last post: by
17 posts views Thread by Kbalz | last post: by
reply views Thread by Frode | last post: by
1 post views Thread by John B. | last post: by
1 post views Thread by Ronak mishra | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.