3

我有一个 C# .Net 2.0 应用程序,它实现了这样的 FullscreenMode:

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

如果用户处于全屏模式并尝试打开帮助,则没有任何反应(用户可见),帮助窗口会显示在我的全屏表单后面。帮助文件像这样打开:

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

是否可以启动ProcessTopMost 或将其放在调用表单的前面?如果是这样,怎么办?

4

1 回答 1

0

我一直在使用以下代码将当前窗口置于顶部:

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

    BringWindowToTop(this.Handle.ToInt32());
于 2010-02-23T10:22:47.157 回答