3

次のような FullscreenMode を実装する C# .Net 2.0 アプリがあります。

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 がフルスクリーン フォームの背後に表示されます。ヘルプファイルは次のように openend されます:

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 に答える