2010-02-23 6 views
3

J'ai une application C# .Net 2.0 qui implémente un FullscreenMode comme celui-ci:Lancer un processus TopMost

targetForm.WindowState = FormWindowState.Maximized; 
targetForm.FormBorderStyle = FormBorderStyle.None; 
targetForm.TopMost = true; 
WinApi.SetWinFullScreen(targetForm.Handle); // let me know if you need the code of this methode 

Si l'utilisateur est en FullscreenMode et tente d'ouvrir le rien d'aide arrive (visible à l'utilisateur), le HelpWindow s'affiche derrière mon formulaire en plein écran. Le fichier d'aide se présente comme fibres libérées:

string helpPath= Registry.CurrentUser.OpenSubKey(@"Software\...").GetValue("HelpFile") as string; 
System.Diagnostics.Process.Start(helpPath); // the helpfile is a *.chm file 

Est-il possible de démarrer une Process TopMost ou l'amener devant la forme invocateur? Et si oui, comment?

Répondre

0

J'utilise le code suivant pour afficher la fenêtre actuelle vers le haut:

[DllImport("user32")] 
    static extern int BringWindowToTop(int hwnd); 

    BringWindowToTop(this.Handle.ToInt32()); 
+0

J'ai essayé ... ça ne fonctionne pas –

Questions connexes