开发者

How to suppress dialog/popup window of application that you have just launched from your C# code?

开发者 https://www.devze.com 2023-03-12 03:47 出处:网络
From my C# app I\'m launching annother app, which before execution sometimes show dialog/popup with some info.

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消