or a Form with ShowDialog() ?
simply because sometimes and for some undetermined reason it cause my
application to go background, and then I found noway whatsoever to bring to
front again automatically !
(and yest I did try some win32 calls ....)
Speaking of which... Care to try something new?
IntPtr hWnd = FindWindow("#NETCF_AGL_PARK_",
System.Reflection.Assembly.GetExecutingAssembly().GetModules()[0].FullyQuali
fiedName);
if ( hWnd != IntPtr.Zero )
SendMessage( hWnd, 0x8001, 0, 0);
This is supposed to bring the application to foreground reliably.