Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Force Ctrl+F1 to cycle between windows
Message
De
17/07/2008 12:30:39
 
 
À
29/06/2008 11:43:36
Information générale
Forum:
ASP.NET
Catégorie:
Formulaires
Versions des environnements
Environment:
C# 2.0
Divers
Thread ID:
01326709
Message ID:
01332019
Vues:
7
I found that this code works in MDI child:

case Keys.Control | Keys.F1:
for (int i = 0; i < FormManager.MainForm.MdiChildren.Length; i++)
{
if (FormManager.MainForm.MdiChildren[i] == this)
{

if (i < FormManager.MainForm.MdiChildren.Length - 1)
FormManager.MainForm.MdiChildren[i + 1].Focus();
else
FormManager.MainForm.MdiChildren[0].Focus();

return true;
}
}
return true;

It this same as your code?


Using ProcessCmdKey forces application to run with unmanaged code rights:

[SecurityPermission(SecurityAction.LinkDemand, Flags = SecurityPermissionFlag.UnmanagedCode)]

How to implement Ctrl+F1 so that application works without UnmanagedCode right ?
Andrus
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform