G
Guest
Hi,
from a dotnet winform application I start a process which is a Windows
application. I want the window to stay visible even if the user clicks on the
winform window.
I tried to call BringWindowToTop:
[DllImport("user32.dll")]
public static extern Boolean BringWindowToTop(IntPtr hWnd);
IntPtr hWnd=process.MainWindowHandle;
bool bResult=de.itools.util.Win32.ApiCalls.BringWindowToTop(hWnd);
where process is the System.Diagnostics.Process which was startet before. I
get true as result, but the window does not come to foreground.
As this doesn't work I tried with other window handles:
IntPtr hWnd=process.Handle;
or
IntPtr hWnd=de.itools.util.Win32.ApiCalls.GetTopWindow(
process.MainWindowHandle);
or
IntPtr hWnd=de.itools.util.Win32.ApiCalls.GetTopWindow(
process.Handle);
but with no success. It seems all these calls dont affect the window at all.
TIA
Frank
from a dotnet winform application I start a process which is a Windows
application. I want the window to stay visible even if the user clicks on the
winform window.
I tried to call BringWindowToTop:
[DllImport("user32.dll")]
public static extern Boolean BringWindowToTop(IntPtr hWnd);
IntPtr hWnd=process.MainWindowHandle;
bool bResult=de.itools.util.Win32.ApiCalls.BringWindowToTop(hWnd);
where process is the System.Diagnostics.Process which was startet before. I
get true as result, but the window does not come to foreground.
As this doesn't work I tried with other window handles:
IntPtr hWnd=process.Handle;
or
IntPtr hWnd=de.itools.util.Win32.ApiCalls.GetTopWindow(
process.MainWindowHandle);
or
IntPtr hWnd=de.itools.util.Win32.ApiCalls.GetTopWindow(
process.Handle);
but with no success. It seems all these calls dont affect the window at all.
TIA
Frank