How to suppress dialog/popup window of application that you have just launched from your C# code?
From my C# app I'm launching annother app, which before execution sometimes show dialog/popup with some info.
Is it possible to suppress or hide this dialog and t开发者_如何学Pythonaskbar icon of the dialog ?
EDIT
Is it possible to intercept a call to the win32 function which would show this dialog and thus preventing a popup ?
You can FindWindow via PInvoke and then send message WM_CLOSE or click Cancel button or whatever.
Why dont you launch this second app after your sure that your main (parent) app is fully launched and displayed its window?
Most of the time such applications provide "Run in background (invisible)" argument that you can give when initiating them. Check whether you have such a argument.
精彩评论