我有一个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如果用户在FullscreenMode中,并试图打开帮助,没有发生任何事情(用户可见),HelpWindow将显示在我的全屏表单后面。帮助文件像这样被打开:
string helpPath= Registry.CurrentUser.OpenSubKey(@"Software\...").GetValue("HelpFile") as string;
System.Diagnostics.Process.Start(helpPath); // the helpfile is a *.chm file是否可以启动Process TopMost或将其放在调用窗体的前面?如果是这样,又是如何做到的呢?
发布于 2010-02-23 18:22:47
我一直在使用以下代码将当前窗口置于顶部:
[DllImport("user32")]
static extern int BringWindowToTop(int hwnd);
BringWindowToTop(this.Handle.ToInt32());https://stackoverflow.com/questions/2317025
复制相似问题