On Apr 27, 12:41 pm, Niu Kun <haoniu...@hotmail.comwrote:
How about trying to set it to be topmost when launching?
PhilBraywrote:
Hello,
I am creating an application that is triggered by another 3rd party
app when they create a file in a directory. I use the
filesystemwatcher class to monitor for this file creation event and
then trigger a windows form for my application.
The problem I am having is that when my app is triggered it always
appears behind the 3rd part application. Is there a way I can ensure
that my application will always appear as the front most when
launched.
Many thanks in advance,
Phil
I have tried this also. What I am actually doing is I have a windows
form app that loads when a user logs in and this is therefore the
parent form. The 3rd part applicaiton is then loaded by a user double
click on it which I think is then making itself the topmost form. When
the 3rd party application eventually creates an external file my
parent form app creates a child form (also with the topmost property
to true) but this is always behind.
I was wondering if there was some kind of Windows DLL I could import
which provides this functionality.
Thanks,
Phil