2010-02-23 5 views
3

У меня есть 2.0 приложения C# .Net, реализующего 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 появляется за моей полноэкранной формой. HelpFile получает openend так:

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

Можно ли начать Process TopMost или привести его в передней части формы вызывающей? И если да, то как?

ответ

0

Я использую следующий код, чтобы вывести текущее окно к верхней:

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

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

Я пытался ... это не работает –

Смежные вопросы