2010-02-23 60 views
3

我有一个C#.NET 2.0的应用程序,它实现这样一个FullscreenMode:启动一个进程的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 

如果用户是在FullscreenMode并尝试打开帮助没有任何反应(对用户可见) HelpWindow会显示在我的全屏窗体后面。帮助文件被双头呆这样的:

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

是否有可能开始Process最顶层或将其在调用形式的前面?如果是这样,怎么样?

回答

0

我一直在使用下面的代码把当前窗口到顶端:

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

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

我试过了...这是行不通的 – 2010-02-23 10:32:04