[英]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.从我的 C# 应用程序中,我正在启动另一个应用程序,在执行之前有时会显示带有一些信息的对话框/弹出窗口。
Is it possible to suppress or hide this dialog and taskbar 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?是否可以拦截对 win32 function 的调用,该调用会显示此对话框,从而防止弹出窗口?
You can FindWindow via PInvoke and then send message WM_CLOSE or click Cancel button or whatever.您可以通过PInvoke FindWindow然后发送消息 WM_CLOSE 或单击取消按钮或其他任何内容。
Why dont you launch this second app after your sure that your main (parent) app is fully launched and displayed its window?在确定您的主(父)应用程序已完全启动并显示其 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.
检查你是否有这样的论点。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.